JSFiddle - React, Tailwind, and code Playground

by philfreo

HTML

<select id="dd">
    <option value="">-- Choose One --</option>
    <option value="1">Value specified</option>
    <option>No value</option>
</select>

<br /><br />
<input type="button" onclick="doit();" value="check the value" />

<br /><br />
<div id="output"></div>

When the third element is selected, the value should say "No value" -- it should not be blank. Bug in IE7.

JavaScript

function doit() {
    $('output').set('html', 'The value is "'+$('dd').get('value')+'"');
}