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!
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!!