R

Ram Sharma • 193.86K Points
Coach

Q. Consider the below code:
Identify the correct code in order to fetch the value entered in username text field?

Code:
< body>
< form name="login">
Enter Your Name< input value="Akash" id="p_name" name="uname">
< /form>
< /body>
  • (A) document.getElementByName ("name").value
  • (B) document.login.uname.value
  • (C) document.getElementById ("p_name").value
  • (D) Both B and C
  • Correct Answer - Option(D)
  • Views: 154
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics