javascript for getting value entered in textbox | XM Community
Skip to main content
Solved

javascript for getting value entered in textbox

  • July 6, 2021
  • 1 reply
  • 546 views

Forum|alt.badge.img+11

I want to write a code that can extract the first name from the form field first name and store it in a variable called fname using javascript

Best answer by grahulp5

jQuery('input[type="text"]').eq(0).val(); //update '0' to the row no starting from 0.

1 reply

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • Answer
  • July 12, 2021

jQuery('input[type="text"]').eq(0).val(); //update '0' to the row no starting from 0.