.show jquery function - not displaying div -


i'm trying make javascript work, want show hidden (display:none) div when user clicks on button. can tell me i'm going wrong?

http://jsfiddle.net/tz52u/

example on website above.

code i'm using:

     $(document).ready(function () {      $("#show").click(function () {     $(".no-show").show();     });     }); 

thanks help.

really appreciated!

you're missing }); in fiddle. don't need script tags in fiddle either. didn't include jquery. don't need $(document).ready() because jsfiddle loads code already.

here's fixed one:

http://jsfiddle.net/tz52u/6/

$("#show").click(function(){     $(".no-show").show(); }); 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -