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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -