I have iterated new DOM using jquery. But the newly manipulated DOM are not available as normal DOM. DOM is properly written to browser yet functions on those elements not working. Code is given below.
<div>
<table id='jvcontainer'>
<tr id='vrtable'>
<td>
<select class="drcr">
<option value="dr">Dr</option>
<option value="cr">Cr</option>
</select>
<input class="jvamt" name="parrot[]" type="text">
</td>
</tr>
</table>
</div>
<script>
$(".drcr").change(function(){
thisval = $(this).closest("tr").find(".jvamt").val();
//alert(thisval);
$('#jvcontainer').append("<br><tr id='vrtable'><td><select class='drcr'><option value='dr'>Dr</option><option value='cr'>Cr</option></select><input class='jvamt' name='parrot[]' type='text' value='fdfdfd'></td></tr> ");
});
</script>