[Javascript] Multifield Form Handlers
Rodney Myers
rmyers at i-way.co.uk
Fri Mar 30 13:31:56 CST 2001
Steven,
In the onChange event for any select write code that will make the
selects for other options go back to start position.
e.g.
In (say) Option 2
onchange="resetOthers(this.form,2)"
and
function resetOthers(form,chosenOption){
if(chosenOption!=1)
{
form.selectName1a.selectedIndex=0;
form.selectName1b.selectedIndex=0;
form.selectName1c.selectedIndex=0;
}
if(chosenOption!=2)
{
form.selectName2a.selectedIndex=0;
form.selectName2b.selectedIndex=0;
}
// etcetera
}
hth
Rodney
Steven Pesant wrote:
> The user CANNOT select from OPTION2, OPTION3, OPTION4 or OPTION5
> simultaneously. They can only select from a single OPTION for each query.
--
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/
STILL PLACES OPEN on Fri 27 April workshop
Courses in April
Mon 23 : Making a Start in E-Commerce with Shop at ssistant
Tue 24 : Meeting Business Needs with the Shop at ssistant Classic system
Wed 25 : Building Better Shopping Pages with Shop at ssistant Classic
Booking for these Shop at ssistant Classic courses at
http://www.shopassistant.net/training/
Or call 01256 880770
Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions
More information about the Javascript
mailing list