[英]onchange event on dynamic table row how to add text param
I have code which allows for adding dynamic rows to a table, all working fine. 我有允许将动态行添加到表中的代码,所有工作正常。 On each row I have an onchange event, one of the params in the onchange event function needs to be some static text, the word: quantity, having problems just adding the static text to the onchange event.
在每一行上,我都有一个onchange事件,onchange事件函数中的一个参数需要是一些静态文本,即单词:quantity,仅在将静态文本添加到onchange事件时就会遇到问题。 I have tried the following:
我尝试了以下方法:
onChange="postLineInput($(claim_id).val(),' + counter + ','quantity',$(this).val());"
causes an error 导致错误
tried this: 尝试了这个:
onChange="postLineInput($(claim_id).val(),' + counter + ',"quantity",$(this).val());"
causes an error 导致错误
tried this: 尝试了这个:
onChange="postLineInput($(claim_id).val(),' + counter + ',+ quantity +,$(this).val());"
causes an error 导致错误
tried this: 尝试了这个:
onChange="postLineInput($(claim_id).val(),' + counter + ','+ quantity +',$(this).val());"
causes an error. 导致错误。
如果此onChange=
由JS设置,请尝试以下操作
onChange="postLineInput($(claim_id).val(),"+counter+","+quantity+",$(this).val());"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.