, , NoScript .
, .
, " " ( ) :
<select name="subpos" id="subpos">
<option value="examplel">examplel</option>
<option value="sample">sample</option>
<option value="fortest">fortest</option>
</select>
<script>
$(function() {
$('#subpos').change(function() {
console.log('subpos has changed');
});
$("#subpos").val('sample');
});
</script>
after launch; see console log you cannot see that "subitem has changed" in the console log. but in action "subposition has changed" what happens? it should be written to the console when the selection changes. Now, choosing this option from the drop-down list, you can see that the log of the club changes
source
share