Form sumbit focus element
Dear Friends,
I have a form i need to duplicate all the values i am copying after generating new form with new id the control has to move to one element below is my code..
var weight=$('#weight').focus();
$('<form></form>')
.attr('action', 'create_order.php')
.attr('method', 'post')
.append($('<input>')
.attr('name', 'duplicate')
.val(orderNumber)
)
.appendTo('body')
.submit();