簡體   English   中英

Internet Explorer 中的 JQuery 選擇器問題?

[英]JQuery selector problem in Internet Explorer?

我有一個 jquery 選擇器,看起來像:

alert($("#editform #action").val());

輸入框(id = action)在表單內(id = editform),我試圖提醒輸入框動作的值。

這在 Firefox、Chrome 中工作得很好,但在 IE 6 或 IE7 中卻不行。 警報值為“未定義”

有人知道如何解決嗎?

你只需要一個元素ID。

alert($("#action").val());

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM