Answers for "jquery select element with text"

2

get text selected option jquery

$('#id option:selected').text()
Posted by: Guest on December-16-2019
1

jquery selected option text

$( "#myselect option:selected" ).text();
Posted by: Guest on October-06-2020
2

jquery select option by text

$("#myDropdown option:contains(Option 2)").attr('selected', 'selected');
Posted by: Guest on June-16-2020
0

store the text from a form jquery

$('form').submit(function(e) {
    e.preventDefault();
    var input = $('#search').val();
    $('p').append(input);
});
Posted by: Guest on May-15-2020

Code answers related to "jquery select element with text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language