views:

49

answers:

3

Let me make this same command in jQuery

$('aplicacao').filterByTagName(searchValue);

currently is in prototype would like to see more on jQuery

Thank you very much

+4  A: 
$('#aplicacao ' + searchValue);

And, thanks to mkoistinen:

$(searchValue, '#aplicacao');
$('#aplicacao').find(searchValue);

These two options are better if you'd like to avoid hacking strings together, but the first is better if you want to follow CSS conventions.

Skilldrick
Also, `$(searchValue, '#aplicacao');` and `$('#aplicacao').find(searchValue);`.
mkoistinen
@mkoistinen Yep, both good as well. Mind if I add them in to the answer?
Skilldrick
I don't mind at all.
mkoistinen
+2  A: 
$('#aplicacao').find(searchValue);
JapanPro
+1  A: 

Well I'm not a pro on protorype and so, not sure what aplicacao refers to, but if it would be an id:

$('#aplicacao').find('h1');

(for example)

Hannes
was not my code has another command soaplicacao.filterByTagName(tag);
Patrique
unfortunately it did not work
Patrique