Name:<input type=text name=fname id=t1><div id=d1 style="background-color:yellow;">Enter your Details</div>
Email: <input type=text name=fname id=t2>
<script>
$(document).ready(function() {
$('#t1').focus(function(){
$('#d1').html('Enter your name');
});
$('#t2').focus(function(){
$('#d1').html('Enter your email');
});
})
</script>