.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?
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:
$("#show").click(function(){ $(".no-show").show(); });
Comments
Post a Comment