我有一个可编辑的DataTabe当编辑模式,生成的HTML正是如下图所示:如何使用JavaScript获取没有id的输入值?
<td><form><input autocomplete="off" name="value" ></form></td>
有是S文本框输入,我需要吨得到此输入的值。然而,我不能给id,因为没有DataTable的配置,我决定使用Javaascipt来获取值。我尝试了许多不同的方法,如最接近()如下所示,但无法获得该值。有可能抓住它吗?
var $row = $(this).closest("tr");
$tds = $row.find("td");
你摇滚!..非常感谢:) – hexadecimal
@hexadecimal不客气! ;) –