To get the value using jquery.it, you need to do this. Also make sure that you specify the identifier on the input fields.
like this: <input type='text' name='user' id='user' >
Then only this code will work correctly
$(document).ready(function() { $('#buttonElement').click(function() { $('#name').val($('#user').val()); }); });
source share