想要从变量jquery

时间:2018-03-19 05:21:22

标签: javascript jquery

想要将变量值设置为输入框

success: function(result_email){
                    console.log(result_email);
                    ('#verify_email').val('asc');
                }

得到错误

user-registration.js:123 Uncaught TypeError: "#verify_email".val is not a function
at Object.success (user-registration.js:123)

1 个答案:

答案 0 :(得分:1)

你可以尝试

$('#verify_email').val(result_email);