P
Peter
Hello
I have the following tag
<select name="cat" id="cat"
onchange="popUpWin('cmPhaseReload.php?category='+document.getElementById('cat').options[document.getElementById('cat').selectedIndex].value
,600,600,'yes')" class="tbl_result" size="1">
the cat field is a drop down list
here's my problem
some values for the drop down have values with a space on it.
ABC DEF
when I try to pass the value to the other page I only get the ABC part.
How can I correctly pass the value?
someone told me to use a function called escape
sorta like
escape(document.getElementById('cat').options[document.getElementById('cat').selectedIndex].value)
but that didn't seem to work.
can someone help the newbie out here?
Thanks
Peter
I have the following tag
<select name="cat" id="cat"
onchange="popUpWin('cmPhaseReload.php?category='+document.getElementById('cat').options[document.getElementById('cat').selectedIndex].value
,600,600,'yes')" class="tbl_result" size="1">
the cat field is a drop down list
here's my problem
some values for the drop down have values with a space on it.
ABC DEF
when I try to pass the value to the other page I only get the ABC part.
How can I correctly pass the value?
someone told me to use a function called escape
sorta like
escape(document.getElementById('cat').options[document.getElementById('cat').selectedIndex].value)
but that didn't seem to work.
can someone help the newbie out here?
Thanks
Peter