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/

enter image description here


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -