1$('input[name="noofppl"]').keyup(function(){
2 console.log($(this).val());
3});
1jQuery(function($) {
2 var $firstname = $('input[name="firstname"]');
3 var $lastname = $('input[name="lastname"]');
4 var $fullname = $('input[name="fullname"]');
5
6 $firstname.add($lastname).keyup(function() {
7 $fullname.val($firstname.val() + ' ' + $lastname.val());
8 });
9});