.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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -