如何在 jquery 中选择串联名称,这是我的示例代码;
p = "WL_INVDTL.0001.LW3SUPRC";
$('input[name=p]').attr("disabled",false);
是否可以选择连接的文本。
如何在 jquery 中选择串联名称,这是我的示例代码;
p = "WL_INVDTL.0001.LW3SUPRC";
$('input[name=p]').attr("disabled",false);
是否可以选择连接的文本。
利用
$('input[name="' + p '"]').prop("disabled",false);
更新:
$(document).ready(function() {
$('#WL_INVDTL').on('click', 'tr td:first-child input:checkbox', function(){
var $this = $(this);
$this.closest('tr').find('input:text').prop('disabled', !$this.is(':checked'))
})
});
演示:小提琴