jquery get value after relaese key code example
Example 1: get input value on keypress jquery
$('#dSuggest').keypress(function() {
var dInput = this.value;
console.log(dInput);
$(".dDimension:contains('" + dInput + "')").css("display","block");
});
Example 2: jquery to copy two input fields into one with a space between
jQuery(function($) {
var $firstname = $('input[name="firstname"]');
var $lastname = $('input[name="lastname"]');
var $fullname = $('input[name="fullname"]');
$firstname.add($lastname).keyup(function() {
$fullname.val($firstname.val() + ' ' + $lastname.val());
});
});