Find Jobs
Hire Freelancers

Auto-Fill ajax response on dynamic fields in Yii2

$8-15 USD / hour

已完成
已发布大约 9 年前

$8-15 USD / hour

I am using auto-fill with a ajax request, which is working fine for static fields. for example: $this->registerJs("$(document).delegate('.form-control','change',function(event){ $.ajax({ url: '".yii\helpers\Url::toRoute("ot-note/instrument1")."', dataType: 'json', method: 'GET', data: {id: $(this).val(), }, success: function (data, textStatus, jqXHR) { $('#otinstrumententry-0-instrument_code').val(data.instrument_code); }, beforeSend: function (xhr) { alert('loading!'); }, error: function (jqXHR, textStatus, errorThrown) { [login to view URL]('An error occured!'); alert('Error in ajax request'); } }); });"); My fields are added dynamically and it is not working for the dynamically added fields, the code is like this: the id of the fields are becoming like #field-0-instrument_code #field-1-instrument_cdoe Except for the first field, the successive fields are not recognized by Jquery, which are added dynamically. How I can resolve this problem. thanks.
项目 ID: 7299392

关于此项目

6提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
EXPERTISE IN YII our web site [login to view URL] interested in this job,want to discuss this in detail expertise in ANDROID,php/mysql,Javascript,Jqery,symfony-2,html,html-5,bootstrap,android,css,css-3,cakephp (MVC),LARAVEL,YII, have more than 11 year of experience we follow daily meeting daily update email weekly update meeting
$8 USD 在40天之内
2.4 (29条评论)
6.7
6.7
6威客以平均价$11 USD/小时来参与此工作竞价
用户头像
A proposal has not yet been provided
$12 USD 在3天之内
5.0 (52条评论)
5.6
5.6
用户头像
제안이 아직 제공되지 않았습니다
$12 USD 在3天之内
4.1 (3条评论)
3.1
3.1
用户头像
Hi! Can help you with this problem, I think it will take about an hour, I can work with Desktop App, or over teamviewer
$12 USD 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

INDIA的国旗
Sambalpur, India
5.0
4
付款方式已验证
会员自10月 8, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。