Hi,
i have in my Selectfielld (DropDown)
z.B. this Option:
INB=INB
ANB=ANB
But for my switch script I need:
1=INB
2=ANB
Unfortunately I can not use numbers as an option, because I usually only a number is displayed in my view form.
I usually do not know how I can use the:
What can I do? :-)
i have in my Selectfielld (DropDown)
z.B. this Option:
INB=INB
ANB=ANB
But for my switch script I need:
1=INB
2=ANB
Unfortunately I can not use numbers as an option, because I usually only a number is displayed in my view form.
I usually do not know how I can use the:
$('#status').change(function () {
var val = parseInt($(this).val(), 10);
switch (val) {
case 1:
$('td').css('background-color', 'blue')
break;
Case 2:
...
What can I do? :-)