Dropdown with dinamic data - how read text value?

siarov 04 Dec, 2012
Hallo
I use dropdown, with Dinamic data (values and texts loading from database) - JS.
All is OK, I can read value key but can not read text key of the selected item.
This is my code (when value key = 1 then submit button is disable).
inp_Country is dropdown, inp_submit_prof is Submit button.
window.addEvent('domready', function() {
   $('inp_Country').addEvent('change', function(){  
    $('inp_submit_prof').setProperty('disabled', false);
    if ( $('inp_Country').value == 1 ) {    
     $('inp_submit_prof').setProperty('disabled', true);
    };    
   });
});

Please help me how can I read text key?

Best regards
George Siarov
siarov 07 Dec, 2012
THANK YOU VERY MUCH. 3 DAYS THERE IS NO ANSWER!!!
GreyHead 07 Dec, 2012
Hi siarov,

There's nothing like shouting to get you to the top of the list.

Bob
This topic is locked and no more replies can be posted.