I have a table row with <div> surrounded.
<input type="button" value="enableDiv" onclick="toggleAlert()" />
I want when page loads , <div> be disabled and when button clicked <div> enabled.
Can JQuery be used here ?how?
Alternatively, to ensure that the div is hidden when the page first loads you can hide it using the css for your page. If you don't have css for the page you would need to place <style> tags around this codebyte.
Change your input to;
<input type="button" value="enableDiv" id="myButton" />
Should work (assuming you already have jQuery loaded).