How to store html in hidden field using jquery?
<p>How to store string with HTML tags in hidden field using jquery?
I am using the below code. But its not working.</p>

<pre><code>var terms = $('#TermsAndCondition').val();
    alert($('#hdnTerms').val(terms));
</code></pre>

<p>Here TermsAndCondition is TextArea and hdnTerms is hidden field.
In alert it returns the object.</p>
