Lets say we need to hide to div tag on the page using CSS and Jquery.
Below is a Jquery code with two parameters. First parameter specifies the style property and the second parameter accepts the value of the property.
HTML Code.function hideDiv()
{
$("#divHiddenPrint").css("display", "none");
}
Call the function on the button click event.<div id="divHiddenPrint"></div>
<input type="button" value="Print" onclick="hideDiv()"/>
No comments:
Write comments