Javascript

Topic: JS HTML DOM

How do you get field value in Javascript?

document.forms[0].MyFieldYou can use either
1. document.getElementById("").valueor
2. document.forms[0]..value

Browse random answers: