i have this two javascript that i want to turn into one , i have to use a if but i'm new with javascript, could you help me on this:
<script type ="text/javascript">
$(function () {
$('input[type=text]').focus(function () {
$(this).val('')
});
});
</script>
<script type ="text/javascript">
$(function () {
$('input[type=password]').focus(function () {
$(this).val('')
});
});
</script>
...
Go to the complete details ...