Click to See Complete Forum and Search --> : on click & options ??Please help.....


Asch
12-11-2003, 10:25 AM
Hi ,

I m trying to ad an onclik which executes a script with cookies on an scrollbox wher are listed countrys...

each link is like this :

<option value="australia/index.html" name="australia" onClick="SetCookie('country', this.name, exp)">Australia

So this does not work !!

I tried :

this.name='autralia'
this.name=name || 'australia'

doesnt work eather.... somebody has an idea ?????? i really need it to work !!! thx for your help...

MichaelM
12-11-2003, 10:32 AM
You'll need to call the SetCookie function from the onChange event of the select box...

<select name="selCountry" onChange="SetCookie('country', this.options[this.selectedIndex].text, exp)">
<option value=""></option>
<option value="australia/index.html">Australia</option>
</select>

Asch
12-11-2003, 11:20 AM
Hi michael,

really thank you u are number one :O) !!!
:D :D :D

i was getting really mad with that thing..

thx

asch