Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label>Label1</label><br>
- <input type="text" name="first" onclick="somefunc()"><br>
- <label>Label2</label><br>
- <input type="text" name="second"><br>
- function somefunc() {
- var second = document.getElementsByName('second')[0];
- second.disable = true;
- }
Add Comment
Please, Sign In to add comment