Computer Science, asked by gopal2092, 1 year ago

How to dynamically read the input fields in jquery?

Answers

Answered by Anonymous
0

Hi

You can read the value of input fields using val() method

for example:

x = $('input#name').val();

in above line we are reading the value of input field which has id attribute set to "name", and then we are storing that value in variable x


Similar questions