I have added one script in the form page which is,
<script type="text/javascript">
$(document).ready(function(){
$('.removeOnFocus').each(function()
{
this.data = new Object(); //TODO don't overwrite previous data
this.data.value = this.value;
$(this).focus(function(){
if (this.value == this.data.value)
this.value = '';
});
$(this).blur(function(){
if (this.value == '')
this.value = this.data.value;
});
});
});
</script>
To make this script working, I have added <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
in the same page. Its working fine but other contents in the page getting overlapping. How to avoid this and have to make this script?