if your hidden input field is in the form then you can use javascript code like
Make sure you do this before the form is submitted. Else the value of hidden element will not be set.Code:ssite=document.getElementById('sitelist'); document.simplesearch.REFERRER.value = ssite.options[ssite.selectedIndex].value;
If your hidden element is not in the form, add an 'id' attribute to it and refer to it as document.getElementById('REFERRER');
Hope this helps.
And this for sure needs to be in javascript forums. Nothing to do with java except for the name.substring()!




Reply With Quote