javascript - Why this simple code not working on JSfiddle? -
http://jsfiddle.net/dolours/yazpj/577/ can't figure out issue js fiddle! why alert not showing up?
<input type='input' name='name' id='name' value="test" class='required' /> <input type="button" value="test" onclick="test()"/> function test() { var testvalues = $('#name').val(); alert(testvalues); }
you have set jquery in library option since using jquery in code. jsfiddle.net/yazpj/578/
Comments
Post a Comment