TheBigK
Well-known member
I'm creating an add-on that shows the list of all the currently viewable nodes inside a drop-down in an overlay. My template is this:-
I'm going totally clueless on how do I go about styling the drop-down list so that the user does not get confused between categories and forums.
I want to show the drop down items as follows:-
Category Name [Bold]
|---Forum Name 1
|---Forum Name 2
PS: I don't want ready-made answer. A hint in the right direction would be appreciated. It's part of my learning process
HTML:
<form action="{xen:link misc/create-thread}" method="POST" class="xenForm formOverlay">
<dl class="ctrlUnit">
<dt>Choose from drop-down: </dt>
<dd>
<select name="node_id" class="textCtrl">
<xen:foreach loop="$forums" value="$forum">
<option value="{$forum.node_id}">{$forum.title}</option>
</xen:foreach>
</select>
</dd>
</dl>
<dl class="ctrlUnit submitUnit">
<dt></dt>
<dd>
<input type="submit" value="{xen:phrase post_new_thread}" class="button primary" />
</dd>
</dl>
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
<input type="hidden" name="_xfConfirm" value="1" />
</form>
I'm going totally clueless on how do I go about styling the drop-down list so that the user does not get confused between categories and forums.
I want to show the drop down items as follows:-
Category Name [Bold]
|---Forum Name 1
|---Forum Name 2
PS: I don't want ready-made answer. A hint in the right direction would be appreciated. It's part of my learning process