Page 1 of 1

How to enable multiple select boxes on a page ?

Posted: Sun Jan 13, 2008 1:57 am
by drors30
Hi all,
The following question is based on a sample appears at w3schools at :
http://www.w3schools.com/php/php_ajax_database.asp

I want to build a similar page but instead of one check box i will have 3-4 check boxes
in one page.
Each of them will call a different Javascript that goes through a different php page and displays the
results of the query in a different table.

How can i achieve this ?

Re: How to enable multiple select boxes on a page ?

Posted: Sun Jan 13, 2008 2:38 am
by John Cartwright
You can have as many select elements as you wish, however they are required to have unique name attributes. You mentioned that each element will execute different javascript so you may need to modify the onchange() event handler.