I have input text and some text in HTML:
<input type="text" name="user_id" id="user_id" maxlength='13' size='13' onChange="no_user_id_change();">
<p> Your ID is: {{id from input type goes here when I type Enter in input type...}} </p>
My JavaScript:
<script>
function no_user_id_change() {
var userId = $("#user_id").val();
}
</script>
My question:
How can I get the user id
from the input
text when user type Enter?