how to add options in a drop down menu

15 views
Skip to first unread message

Damien Mattei

unread,
Apr 24, 2017, 5:37:08 AM4/24/17
to BiwaScheme
Hi,

i know it's a trivial question, but how can i add options using biwascheme in a drop down menu of this form:

<INPUT id="MenuCocherNom" name=CocherNom onclick=this.form.Nom.focus() type=checkbox
               value=ON> Objects discovered by the same observer &nbsp; &nbsp;<SELECT
                                                 multiple name=Nom size=2>
            <OPTION>A<OPTION>AC<OPTION>AG<OPTION>

regards,

damien

Damien Mattei

unread,
Apr 24, 2017, 9:18:54 AM4/24/17
to BiwaScheme
finally do it by myself:


;<SELECT
            id="MenuCocherNom" multiple name=Nom size=2>
            <OPTION>A<OPTION>AC<OPTION>

(define menu (getelem "#MenuCocherNom"))

(define option (element-new '(option "Toto")))

(element-insert! menu option)

Damien
Reply all
Reply to author
Forward
0 new messages