how to get value from input field while typing
$("#txt").keyup(function(event) {
text = $(this).val();
$("div").text(text);
});
$('#txt').focusout(function(){
if($(this).val().length < 20){
alert(" Minimum 20 Words required...!! ");
}
})
3.4
10
$('input[name="noofppl"]').keyup(function(){
console.log($(this).val());
});
$('input[name="noofppl"]').focusout(function(){
if($(this).val().length < 20){
alert("Minimum character is 20!!!");
}
});
Thank you!
10
0
Are there any code examples left?
New code examples in category Other