How do you select an item using css class or ID and get the value by use of jquery Anonymous User246720-May-2011jqueryjquery Updated on 18-Sep-2020
Anonymous User
20-May-2011$('#MyId') for ID and for classs $('.MyClass') and for value
var myValue = $('#MyId').val(); // get the value in var Myvalue by id
Or for set the value in selected item
$('#MyId').val("print me"); // set the value of a form input