Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

option selected aotu value

$(document).ready(
    function(){
        var theValue = $('#myId').val();
        $('option[value=' + theValue + ']')
            .attr('selected',true);
    });
 
PREVIOUS NEXT
Tagged: #option #selected #aotu
ADD COMMENT
Topic
Name
8+4 =