a selector like this:
$('#minhaDiv input[id!="meuId1"]');
It's common. I'd like to know if it's possible to do something like this:
$('#minhaDiv input[id!="meuId1" && id!="meuId8"]');
Thank you.
a selector like this:
$('#minhaDiv input[id!="meuId1"]');
It's common. I'd like to know if it's possible to do something like this:
$('#minhaDiv input[id!="meuId1" && id!="meuId8"]');
Thank you.
I know two ways to do this:
$('#minhaDiv input[id!="meuId1"][id!="meuId8"]');
or
$('#minhaDiv input').filter(function(){
var id = jQuery(this).attr('id');
var idInvalidos = [
'meuId1',
'meuId8',
];
return !jQuery.inArray(id,idInvalidos);
});