开发者

migrate to jQuery

Let me make this same command in jQuery

$('aplicacao').filterByTagName(searchValu开发者_如何转开发e);

currently is in prototype would like to see more on jQuery

Thank you very much


$('#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.


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


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜