[英]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.