InterviewSolution
Saved Bookmarks
| 1. |
How will you enable a disabled textbox? |
|
Answer» We can enable a disabled HTML element, be it a button, input field, text area, etc, by changing the attributes using the .removeAttribute(“disabled”) method. Here is a code to enable a text box using the Javascript executor. String enable ="doc.getElementsByName("name').removeAttribute('disabled');";javascript.executeScript(enable); |
|