How to hide empty fieldset
-
Hi, im trying to hide hide fieldset is its empty. If I select “1” in the fieldset “NUMBER”, group a1 is displayed. If I select “2” in the fieldset, group a1 and group a2 etc. will be displayed. However, if I select “0” or “– Choose Number –” then an empty fieldset named “NUMBER” will be displayed. Could someone please advise me how to hide the fieldset when it is empty?
Numbers: *
[select* numberss first_as_label "-- Choose Number --" "0" "1" "2" "3"]
<fieldset>
<legend>NUMBER</legend>
[group a1]
Holidays in Americas
[select Americas "USA" "Mexico" "Brazil"]
[/group]
[group a2]
Holidays in Europe
[select Europe "UK" "Spain" "Italy" "Greece"]
[/group]
[group a3]
Holidays in Asia
[select Asia "Thailand" "UAE" "Vietnam"]
[/group]
</fieldset>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to hide empty fieldset’ is closed to new replies.