I am using jqx dropdown button for some elements in a form on my jsp page.
when I set them as the following
<form name="myForm">
<input type="button" value="one" onclick="validate(this.form);">
<div style="float: left;" id="dropDownButton">
<div style="border: none; display: none;" id='jqxTree'>
<ul>
<li>
<input type="button" value="two" onclick="validate(this.form);">
</li>
<li>
<input type="button" value="three" onclick="validate(this.form);">
</li>
</ul>
</div>
</div>
<input type="button" value="four" onclick="validate(this.form);">
</form>
and the following to get what I want:
$("#dropDownButton").jqxDropDownButton({ width: 90, height: 22, theme: theme });
doing this it somehow sets the dropDownButton div out of the form and it obviously throws error saying this.form is unknown.
How can I fix this issue or is it possible to assign an external element back to my form?