Setting "checked" for a checkbox with jQuery. Building on the bestselling formats of the first two editions, this new edition teaches you the fundamentals of HTML5 and CSS3, and then presents ways for using them with JavaScript, MySQL, and Ajax to create websites that work. The following HTML Markup consists of an HTML DropDownList (DropDown) control and a Button. We have two HTML dropdown element, one is select1 and other is select2, the option values of select2 element is depend upon selected value of select1 element.We are creating drop down boxes options values dynamically using JavaScript. Found inside... class="target" type="text" value="Field 1" /> , .val() gets the 'value' of the selected