【发布时间】:2012-01-28 00:17:49
【问题描述】:
我在 DOM 中找到我的元素,如下所示:
tag_text_box = ($(this).parent().parent().find('.tags'))
我打印出来检查它是否正确,确实如此。 这里:
[
<input type="text" class="tags ui-autocomplete-input" style="width: 250px; height: 24px; background-color: red; " name="display_name" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true">
]
但是tag_text_box.text() 似乎根本不起作用。它不会打印我在输入中输入的任何文本。我应该使用其他方法吗?
【问题讨论】: