$("#target").val($("#target option:first").val());
More Related Contents:
- jQuery Adding new option to select element doesn't pick up the string [closed]
- jQuery get value of select onChange
- Why does the jquery change event not trigger when I set the value of a select using val()?
- Use jQuery to change a second select list based on the first select list option
- Click event on select option element in chrome
- jQuery: Best practice to populate drop down?
- Auto resizing the SELECT element according to selected OPTION’s width
- Best way to unselect a in jQuery?
- Selecting text on focus using jQuery not working in Safari and Chrome
- Populate Select box options on click with Javascript/Jquery with Json data
- Get index of selected option with jQuery
- Get SELECT’s value and text in jQuery [duplicate]
- Jquery- Get the value of first td in table
- Disable select options based on value *through the HTML only!*
- Unselect what was selected in an input with .select()
- jQuery onchange/onfocus select box to display an image?
- JQuery :contains function limit to exact match
- jQuery disable a link
- What is fastest children() or find() in jQuery?
- val() doesn’t trigger change() in jQuery
- JQuery ui – date picker, disabling specific dates
- jQuery get all divs which do not have class attribute
- Is it possible to use jQuery to read meta tags
- Changing the position of Bootstrap popovers based on the popover’s X position in relation to window edge?
- jQuery prevent change for select
- jQuery $(“.class”).click(); – multiple elements, click event once
- jQuery: this.attr() not a function?
- ESLint dollar($) is not defined. (no-undef)
- Determining whether jQuery has not found any element
- changing location.hash with jquery ui tabs