Orangeuser Orangeuser - 2 months ago 10
HTML Question

How to get html of form having typed values of text boxes

I have a form and when I call

$('#form').html();
it comes without text values of typed textbox. How to get them and retrieve the text values of textboxes.

Answer Source

When you type in textbox it does not contain any text if you get the HTML of the form. You need to set the typed text using the element's .text('') method. Then if you call .html() then there will be your html values with the text that client entered.