views:

43

answers:

2

I have a aspx page where in I have made a form. There is a help button on this form.When I click on the help button I have created html code in Javascript.

    function help_For_admin()
{

var Message_Help = '<p><b>Admin Page Description</b></p>'


 document.getElementById("help").innerHTML =Message_Help ; 
 document.getElementById("Div_Admin").style.display = "";
   }

Now when I click on the help button I want the div Div_admin to get focus and the remaining elements of the aspx page to be disabled and when I close the div window the aspx page to get focus.How can I do this.I would like an answer without the use of jquery

+2  A: 

How to disable all div content

Similar to what your trying to do with disabling, instead of a checkbox...

Avien
Not what I need but learnt something new thank you
gizgok
A: 

Hi, you can use jquery blockUI to easily to disable any portion of the page. http://jquery.malsup.com/block/#element

Popo