Same "name" for Onblur and id cause ambiguity
===

I'm making this form that will have Ajax and I wanted to use javascript for validation on client side. However I encounter a problem when I put id name and onblur fnc name the same:

    <label>Title*:</label>
   
	<?php 
	echo '<input type="text" id="title1" value = "" onblur="title1(this.value)"/> <span id="err1"> </span> <p></p>';
	?>

Basically Ajax won't work because my fnc name is the same as id name. I'm just wondering why it caused ambiguity since onblur and id need diff parameters. 