PrototypeJS:Wildcard'start-with'id选择器?

时间:2014-01-15 11:20:50

标签: css-selectors prototypejs wildcard

使用JQuery可以通过以下方式实现:

$("[id^='thestart']");  

这可以通过Prototype-JS实现吗?

1 个答案:

答案 0 :(得分:1)

您可以使用'$$'执行此操作:

$$("[id^='thestart']")

请记住,与'$'不同,'$$'会返回一系列元素。

相关问题