LeadiD_token get the value
LeadiD_token get the value
我有一个webform和我的leadid_token
是从Jornaya生成的。这里有一个脚本代码,我们刚刚放到了我的网页上。我的问题是我想把令牌的价值发布到我的门户网站cms,我们该怎么做这例:
<form method="post" action="https://portalcmssample.php" id="form1">
<input id=" leadid_token " name="universal_leadid" type="hidden" value= "" /></div>
</form>
我没有看到令牌的值在我提交后出现在我的cms门户吗?我做错什么了吗?
老问题,答案很简单。我们使用下面的解决方案,它利用了jQuery。确保在脚本中包含了jQuery,然后在
后面包含以下代码:<script type="text/javascript">
$(document).ready(function () {
if (!$('#leadid_token').length) {
$('form').last().append(
$('<input>').attr({
type: 'hidden',
id: 'leadid_token',
name: 'LeadiDToken'
}));
}});
</script>
<script id="LeadiDscript" type="text/javascript">
// Your Jornaya script goes here
</script>
这段代码将自动向表单添加一个隐藏字段。Jornaya的脚本将在加载async后自动填充这个表单的值。该值将在提交表单时提交给服务器。
相关文章:
- 在ember/handlers中使用value和valueBinding有什么区别
- Intercept the cellSubmit jqGrid
- CSS中的游标属性似乎不适用于USB On The Go
- 需要url导航从DropDown Value onClick按钮传递url变量
- 用Javascript在下拉列表中选择VALUE选项
- C#asp.net mvc Set CheckBoxFor已检查的具有Model Value的属性
- HTML Value finding
- Javascript GetElementByID has no value
- 如何获取文本框组的值,并使用jquery将它们放入(key:Value)数组中
- .value返回字符串,直到我将其保存到变量
- Save in MYSQL the value of a div with HTML5 Drag &Drop
- LMC changing the y value
- 具有{key:'theKey',value:'the value'}对象的数组
- taking the id value
- Set the value of <input type="date"... in jquer
- LeadiD_token get the value
- Fetching the JSON value
- jQuery Cookie - update the value
- what will be the value of 'this'?
- append select set the value jquery