I have the following 2 lines of code:
var minusID = settingID + '-minus';
$('#' + minusID).removeClass("selected");
How can I efficiently combine this into one line?
Thanks
I have the following 2 lines of code:
var minusID = settingID + '-minus';
$('#' + minusID).removeClass("selected");
How can I efficiently combine this into one line?
Thanks
$('#' + settingID + '-minus').removeClass("selected");
Can't think of anything much better than that, but you shouldn't worry about that, lines-of-code isn't really a concern any more...