You will need to make this selection in several steps. You could use $('[class="a b c"]')
but you can have those classes in different order.
So if you do as you wrote $('.a.b.c')
you will select the elements that have at least those three classes. To exclude others that have even more classes you can do so:
var seletor = '.a.b.c';
var selecionados = $(seletor).filter(function (el) {
var classes = seletor.split('.').filter(Boolean);
return this.className.split(' ').filter(function (classe) {
return classes.indexOf(classe) == -1;
}).length == 0;
});
selecionados.html('eu!!');
jsFiddle: http://jsfiddle.net/pvLhdy10/
have you thought about using id in div?
– Fernando Rangel
This div is generated by a framework, I did not create it
– Michael Pacheco
and take the div by name? ex: $(".a.b. c[name='div1']")
– Fernando Rangel