Hello all,
I wanted to know how would I go about setting the HTML of my td element as the value of a hidden field.
<td align="center">
<%if (inst_dm != null) {%>
...some code..
</td>
<%} else {%>
<td align="center"> Contact not available.
<%}%>
<input type="hidden" name="inst_dmhidden" value="<%$(this).html().trim(); %>">
</td>
So, what I basically want is, in the input field inst_dmhidden, either the value from (..some code..) part or 'Contact not available'.
Any thoughts about how to go about doing this?
-Pritish.