liz
liz

Reputation: 483

find selector with specific content in mootools like this jquery selector

I need to convert this jquery to mootools.

$('tr[class$="-hours"]').css('display', 'none');


$$('XXX').setStyle('display', 'none');

does mootools 1.12 (my CMS has this version installed) have something like the selector above?

Upvotes: 0

Views: 199

Answers (1)

knittl
knittl

Reputation: 265271

MooTools supports the W3C CSS3 Selectors.

$$('tr[class$="-hours"]').setStyle('display', 'none');

Upvotes: 2

Related Questions