I’m writing a windows 8 app and I’m using jQuery.
I have the following line of code which doesn’t work:
$('#myId1', '#myId2').hide();
But this works just fine.
$('#myId1').hide();
$('#myId2').hide();
Not a big deal but the first line of code should work just the same.
Has anyone experienced this/know of a workaround ?
jquery selectors are like css selectors.
If you want to select all elements with
style1union elements withstyle2you have to use comma :The comma mark unions two selectos. So for hiding elements
#myId1and#myId2you will code: