$(document).ready(function() {
$('.my-row-to-bind-jquery-to').click(function() {
var id = this.id;
// do the rest of your stuff here
});
});
I think the problem is that you are trying to generate jQuery to suit each custom row id, this works in theory however I would say that it is pretty bad application design. I would suggest writing a simple script that can handle all of your rows at once eg.
发布评论
评论(2)
我认为问题是你试图生成 jQuery 来适应每个自定义行 id,这在理论上是可行的,但我想说这是非常糟糕的应用程序设计。我建议编写一个简单的脚本,可以一次处理所有行,例如。
那么你可以简单地将 ui 的阻塞和解除阻塞绑定到类而不是像下面这样的每个单独的 id
I think the problem is that you are trying to generate jQuery to suit each custom row id, this works in theory however I would say that it is pretty bad application design. I would suggest writing a simple script that can handle all of your rows at once eg.
then you can simply bind the blocking and unblocking of the ui to the class rather than each individual id like below
好的,您能详细说明一下
应该是什么吗?
另外,您的 javascript 控制台中是否出现任何错误?
Ok would you able to elaborate on what the
is supposed to be?
Also, are you getting any errors in your javascript console?