Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

how to disable a select list?

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');

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

how to disable a select list?

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.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

how to disable a select list?

Perfect - many thanks Katya!

Return to “Issues”