
Untitled
By: a guest on
May 8th, 2012 | syntax:
JavaScript | size: 1.51 KB | hits: 15 | expires: Never
$("#addrow").click(function () {
var newTextBoxDiv = $(document.createElement('div')).attr("id", 'TextBoxDiv' + counter);
newTextBoxDiv.after().html('<div class="container_inside_left_small"><input id="DebtDetailID' + counter + '" type="hidden" name="debtdetailid[]" value="" /><input id="Creditor' + counter + '" type="text" name="creditor[]" id="creditor' + counter + '" value="" class="short credList"></div><div class="container_inside_left_small"><input type="text" name="outstanding[]" id="Outstanding' + counter + '" value="" class="short txt"></div><div class="container_inside_left_small"><input type="text" name="monthlypayments[]" id="MonthlyPayments' + counter + '" value="" class="short sumRepaying"></div><div class="container_inside_left_small"><input type="text" name="refnum[]" id="RefNum' + counter + '" value="" class="short"></div><div class="container_inside_left_small" style="margin-right:0px; width: 80px;"><select id="Secured' + counter + '" name="Secured[]" class="small_float" style="width: 60px;"><option value="0">No</option><option value="1">Yes</option></select></div><div class="container_inside_left_small" style="margin-right:0px; width: 80px;"><select id="JointCreditor1" name="JointCreditor[]" class="small_float" style="width: 60px;"><option value="0">No</option><option value="1">Yes</option></select></div><!--<div class="container_inside_left_small" style="margin-right:0px;"><input onclick="joint(' + counter + ')" value="Joint" type="button" /></div>--><br /><div class="clear"></div>'
);