HOW TO DISABLE/ENABLE TEXTBOX WHEN ANOTHER TEXTBOX IS CLICKED OR REMOVE DATA FROM TEXTBOX - Anna University Multiple Choice Questions

HOW TO DISABLE/ENABLE TEXTBOX WHEN ANOTHER TEXTBOX IS CLICKED OR REMOVE DATA FROM TEXTBOX

To enable or disable textbox based on clicking another textbox program online tutorial is given below. Kindly go through it and get clear idea about it.

Remove Data From textbox when another textbox is clicked:
In this method, when user click on textbox1, the textbox2 value will be erased automatically and if user clicks on textbox2, textbox1 value will be fleshed off.
Sample Program:

Output:

Disable Textbox when another textbox is clicked:
Problem in using this method is, when user clicked on first textbox, second textbox will be disabled and so, the user can't re-enable the textbox2 by clicking on textbox2. To avoid this use above given method

Sample Program:

Output:

Click Here to get -- > HTML Tutorials by Studentsblog100

No comments:

Post a Comment