SyntaxFix
Write A Post
Hire A Developer
Questions
This can also be used
$('#name2').change(function(){ $('#name').val('');//You can set the first value of first one if that is not empty }); $('#name').change(function(){ $('#name2').val(''); });