[jQuery] issue with .append
I have a bit of code that uses .append:
$(pObject).append(whatToAdd);
pObject is a div, with an unique id, in this case "#divTxt"
whatToAdd is a string containing a tag and two <label><input>
tags.
The HTML is:
<body>
<a href="#" onClick="appendElementScriptHere">Add</a>
<form action="#" method="get" id="form1">
<input type="hidden" id="counter" value="1">
<div id="divTxt">
<!--- this is where the data should be appended too --