I'm having an issue where I'm loading 3 DIV's from an AJAX source. The returning HTML looks a little like:
<div>
<label for="firstName">First Name</label>
<input id="firstName" name="firstName"....
</div>
So imagine this block duplicated 3 times in the same DOM. The problem is when I click on the label in the 3rd loaded DIV, its highlighting the text box in the 1st loaded DIV. So now what I have are 3 blocks of HTML where the ID's are clashing.
Does anyone know of any work around for this?
Thanks.