Hideshow Button Using Jquery
Hideshow Button Using Jquery
Hi friends,
Most of the webdevelopers faceing the situation like this.Some times we need to make
the text area as editable one when they are going to click the button.We can easily make
it by using the javascript.Here I am explaining with the check box.When the user going to
click the check box its going to be readonl.Because first it is the editable one.You can
make it also in reverse.
For that you put readonly as true in HTML and change the readonly as false in javascript.
<body>
<script type="text/javascript">
function blah(bool) {
if(bool) {
document.getElementById("ta").readOnly = true;
document.getElementById('tst').style.visibility = 'visible'
}
else {
document.getElementById("ta").readOnly = false;
}
}
</script>