Loading…

How we can get the input value of an element using jQuery?

To achieve the following function, we can use the val() function or attr function (limited to some fields).

The syntaxes to be used to receive the input value of an element using jQuery are as following:

$('#someInput').val();

Suggest An Answer

No suggestions avaliable!

Latest post from Jquery interview questions

Ask Question