MCQ Answer

How can you retrieve the value of an input field in a form using JavaScript?

How can you retrieve the value of an input field in a form using JavaScript?

आप जावास्क्रिप्ट का उपयोग करके किसी फॉर्म में इनपुट फ़ील्ड का मान कैसे प्राप्त कर सकते हैं?
Topic : JS DOM Manipulation

A. element.getValue()

B. element.innerHTML

C. element.value

D. element.innerText




Correct Answer is :

C. element.value



Explanation
The value property is used to get or set the value of form fields, such as ,