I have a form which contains first name and last name..
They can be cloned/duplicated by clicking “Add more” link.
Here is the code..
<form>
<p class="clone">
First name: <input type="text" name="fname[]" value=""><br>
Last name: <input type="text" name="lname[]" value=""><br>
</p>
</form>
<a href="#" class="add" rel=".clone">Add More</a>
Here is the jsfiddle demo http://jsfiddle.net/d6mYr/
Now i would like insert this link next to last name text form field.
<a href="#">Example</a>
Currently my form doesn’t have class attributes in the form fields. It has only name attributes.
So can anyone help me to add that link automatically using jquery?.
Without using that relCopy plugin
http://jsfiddle.net/d6mYr/3/