Answers for "show previously selected option in select element html"

0

option selected aotu value

$(document).ready(
    function(){
        var theValue = $('#myId').val();
        $('option[value=' + theValue + ']')
            .attr('selected',true);
    });
Posted by: Guest on October-19-2020

Code answers related to "show previously selected option in select element html"

Browse Popular Code Answers by Language