How to use jquery to get the value of the input input box

created at 07-24-2021 views: 4

background

How to get the value entered in <input id="password" name="oldPassword" type="password"/> with jquery?

solution

$("#password").val()

$("input[name='oldPassword']").val()

$("input[type='password']").val()
created at:07-24-2021
edited at: 07-24-2021: