-4

I am attaching my jsfiddle demo where I have a simple div tag with display set as none at first. On button click I want the display to be set as block so it is visible. I been trying to figure this out for the longest time and I cannot see what am I doing wrong. Help appreciated!

Here is my fiddle.

Jquery:

$(document).ready(function() {
     $('#go').click(function() {
         $("#warningMessage").css("display", "block");
     });
 });

HTML:

<a id="go" href="#" >Show text</a>

<div id = "warningMessage" class="testClass" style="display: none;">
    <p id="warningMsg" > Status change action would not be saved until you click Save button. </p>
<div>

Thanks!!

Hunter Turner
  • 6,804
  • 11
  • 41
  • 56
HereToLearn_
  • 1,150
  • 4
  • 26
  • 47

1 Answers1

0

Your issue is that you didn't include jQuery. Your code works fine.