Lets say we have a html form textbox with id as "txtName".
To get the value
$("#txtName").val(), To set the value
$("#txtEditName").val("My Value"); We can use the above code for dropdownlist or listbox as well.
To pre-select a DropDownList/ListBox value use
$("#drop1 option:contains("myvalue")").attr('selected', 'selected'); Thanks