Category: Jquery

Ternary Operator for more than 2 conditions

var testCond = $(‘body’).hasClass(‘theme-a’) ? ‘a’ : ‘b’; Need to include new theme class name into the body like mentioned above. But, getting javascript error. Not...

Cannot import in excel file

I’m using the kendo spreadsheet plugin to open an excel file. However I can’t import the excel file at all in IE, but it works in...