If I have a jQuery obj as;
var input = $('<input />',
{'type': 'text','name':currElmModelAttr, 'style':'width:100px' ,
'data-model-id': currElmModelId, 'data-model-attr': currElmModelAttr,
'class':'datePicker', 'value': $(this).html()}
);
Can I use any method to convert it into the form
<input type="text".... />
So that I can directly say
$(this).html(aboveHTMLCode);