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.
Please help me how can I read text key?
Best regards
George Siarov
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
This topic is locked and no more replies can be posted.
