Page 1 of 1

how to disable a select list?

Posted: Thu Oct 03, 2013 12:30 pm
by Andy Parker

Hi,

I have 2 select lists that, at times, I need to disable so they are greyed out and non-clickable.

Lets say one is called mlist and the other clist, my code is as follows (as this worked for some buttons I have), but this does not work for select lists, any idea what I need to do please?

Disable:
var mlist = Tiggzi('mlist');
var clist = Tiggzi('clist');
mlist.addClass('ui-disabled');
clist.addClass('ui-disabled');

Enable:
var mlist = Tiggzi('mlist');
var clist = Tiggzi('clist');
mlist.removeClass('ui-disabled');
clist.removeClass('ui-disabled');


how to disable a select list?

Posted: Thu Oct 03, 2013 1:36 pm
by Kateryna Grynko

Hi Andy,

You can use the following selector: code$(".Screen1_mobileselectmenu_1").addClass("ui-disabled");/codewhere 'Screen1' is a page name and 'mobileselectmenu_1' is a selectmenu component name.


how to disable a select list?

Posted: Thu Oct 03, 2013 1:44 pm
by Andy Parker

Perfect - many thanks Katya!