I want to put a hidden input onto my html form and am doing so with the following struts tag:
<html:hidden property="currentPage" value="page1"></html:hidden>
which renders this html:
<input type="hidden" value="page1" name="currentPage">
How do I set the id property on the html element? So I want the html to be rendered like:
<input type="hidden" value="page1" name="currentPage" id="currentPage">
Try this:
<html:hidden property="currentPage" value="page1" styleId="currentPage"></html:hidden>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With