Hi
I have a combo box (with text|value). I want to get the selected value and text using server side javascript.
getComponent(“Combo1”).getValue() gives the value portion but i want to get the text as well. Please help me out.
Thanks in advance !
Regards,
Karthik KS
Subject: Is this what you want?
var utype = document.getElementById( “Untitled” )alert( utype.options[utype.selectedIndex].text )
That’s client side script. You could take this value and set it to a variable that the server looks at periodically. Just some thoughts.
Subject: Using Server Side Java Script
Hi Williams
Thanks for the same ! but I am just looking for a sample code to get the text (or) label thru server side javascript.
“UISelectItem.getItemLabel” is the method but i could not complete the code.
Thanks once again !
Regards,
Karthik KS