大佬教程收集整理的这篇文章主要介绍了jquery – 我试图从post获取数组的值,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在第一个文本框中触发blur事件时,我需要的就是form_data中的#employee_0.
$("input").blur(function () { $('input').each(function (index,value) { var form_data = $("#employee_" + indeX).find('input').serialize(); $.ajax({ url: "<?PHP echo site_url("HomeController / calculate_time_lap "); ?>",type: 'POST',data: form_data,success: function (result) { $('input').closest('tr').find('.TextBox3').val(result); } }); return false; });
这是我的观点页面:
<tr id="employee_0"><input type ="textBox"></tr> <tr id="employee_1"><input type ="textBox"></tr> <tr id="employee_2"><input type ="textBox"></tr> <tr id="employee_3"><input type ="textBox"></tr> <tr id="employee_4"><input type ="textBox"></tr>
以上是大佬教程为你收集整理的jquery – 我试图从post获取数组的值全部内容,希望文章能够帮你解决jquery – 我试图从post获取数组的值所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。