[英]how to check whether the ajax request handled by a specific url or not prototype
[英]Prototype select element with id that contains specific character
我有一个这样的选择框:
<select id="_item13country_id" name="address[13][country_id]" class="required-entry countries required-entry select required-entry select">
<option value=""> </option>
<option value="TH" selected="selected">Thailand</option>
</select>
我需要通过使用原型来查找包含以下内容的元素来进行选择
country_id
我怎样才能做到这一点 ?。 非常感谢您的帮助。
尝试这个
$$("[id*=country_id]")
这将选择id
为country_id
所有元素
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.