by shobana » Thu May 10, 2007 7:40 pm
Hi Rene
Here is the Code.
function selectOptionValue()
{
var parentNode = this.parentNode.parentNode;
var textInput = parentNode.getElementsByTagName('INPUT')[0];
textInput.value = this.innerHTML;
this.parentNode.style.display='none';
document.getElementById('arrowSelectBox' + parentNode.id.replace(/[^\d]/g,'')).src = arrowImageOver;
if(navigator.userAgent.indexOf('MSIE')>=0)document.getElementById('selectBoxIframe' + parentNode.id.replace(/[^\d]/g,'')).style.display='none';
setValue1(textInput,textInput.id);
}
Just Add a javascript function at the end of selectOptionValue(). In my example "setValue1" gets fired whenever the value in the select option gets changed.
Let me know if you have any problem.
Regards
Shobana