i want to change the display field to a drop down when a check box is clicked.
change display field to drop down on checking a checkbox
Collapse
X
-
the code is give below...
[HTML]<ui:checkbox name="check" id="check" onClick="javasc ript: clicker()"/>
<ui:display-field displayText="Fo rwarder" name="Forwarder " sortable="flase " />
<ui:dropdown name="Forwarder " id="Forwarder" displayText="Si ngle selection" selectOne="true ">
<ui:data select="$root/AA/*" idSrc="ID" displayTextSrc= "Forwarder/@Value" selectionSrc="S ELECTED/@Value = 'yes'" defaultValue="1 11" />
</ui:dropdown>
[/HTML]
when check box is clicked in the place of deiplay-field i want the drop down to be activatedComment
-
A hint would be to hide the display field (set style.display to "none") and show the drop-down (set style.display to "block"). The HTML code would give a better idea of how to access those elements using JavaScript.Originally posted by sunsomthe code is from a tool which uses a customized form of jsp custom tags... i just want a hint as to how to write the javascript for this scenario...Comment
Comment