Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add attribute selected jquery

$(document).on('change', 'select', function () {
            var value = $(this).val();
            $(this).find('option[value="' + value + '"]').attr("selected", "selected");
        })
 
PREVIOUS NEXT
Tagged: #add #attribute #selected #jquery
ADD COMMENT
Topic
Name
6+5 =