I have a webpage with different controls. I have to get html source on button click for a particular div element’s controls with values.
jQuery .html() method gives me html source of controls without values, but I require html source with user selected values.
Try iterating over each
<input>and setting it’svalueattribute to it’s DOM value before accessing the html.jsFiddle: http://jsfiddle.net/AWK9S/3/
jsFiddle: http://jsfiddle.net/AWK9S/3/