I want to disable the div on load , then enable it on click of botton. Or on the other words i want to invisible it when it load and load it when user click.
Frist, is that a correct strategy to load a div in disable mode then enable it , or shall I append it to body after loading ?
Second, here is my code , I have checked many similar questions, my browser is chrome and yet it is not working, I dont know why can you help me through this ?
<div class="test_dis" style="left:170px; top:128px;" >
this is a test to see if
i can disable it on load or not
<div>child </div>
</div>
$(document).load(function(e) { // shall it be on Load or Ready ?
//.attr("disabled","disabled"); both are not working !
$('.test_dis').attr('disabled',true);
});
Thank you ,