how to get the contents inside a div along with all html tags along with values present in text box etc tags .
The jQuery function $('#divid').html() is working in IE but the firefox i am getting the html but the values which are in text area and text box are not setting.
Thanks,
Shriniket
I would continue to do as you are doing to get the html, and then use the jquery form plugin to get the values of the fields.
http://malsup.com/jquery/form/#api
value will be an array of values, you may also like fieldSerialize() which return the name value pairs url encoded.