JQUERY sets the SELECT code


JQUERY can set the option of specified value as the selected item through the value value

$("#SelectId").attr("value", "theValueYouWantToSetIndex")

Also: jQuery. Trim (STR) method, you can remove the Spaces before and after the string