0
我有一个包含表单的模态。我需要在隐藏的输入字段中传递一个id_code,但我无法做到这一点。以模态填充输入表单值
下面是代码:
$(function() {
$('#inpage_form').live ('click', function() {
var test=$(this).attr('id_passed');
$.modal ({
div: '#inpage_form_container'
, title: test
, overlayClose: true
});
});}
这是被调用模态的HTML:
<a href="javascript:;" id_passed="'+dCodArt+'" id="inpage_form" class="trigger"><input type="checkbox">
id_passed在另一个jQuery脚本被回收并作为一个JS变种通过。
下面是模式窗体:
<div id="inpage_form_container" style="display: none" onload="initForm(document.forms[0], 'codArt', 'test');">
<form action="./goTransaction.asp" method="post" class="form" id="formdue" >
<input type="hidden" name="tipo" value="r">
<input type="hidden" name="url" value="<%=request.servervariables("URL")%>">
<input type="hidden" name="numOrd" value="<%=numOrd%>">
<input type="hidden" id="codArt" name="codArt">
</form>
</div>
我试着用搜索引擎,有早晨花费在它没能解决这个问题了。
我该怎么办?
感谢raminson但应该填充 问题是关系到价值 即时通讯已经能够填充模式标题,通过标题变量将其设置为“测试”变种。 – user1396213