开发者

Legacy FBJS causing errors

开发者 https://www.devze.com 2023-04-02 12:02 出处:网络
I\'m having trouble with some old legacy FBJ开发者_StackOverflowS. To validate the value of a field I was using

I'm having trouble with some old legacy FBJ开发者_StackOverflowS. To validate the value of a field I was using

document.getElementById('email2').getValue()

This is now giving me the error

Error: a197943730232760_document.getElementById("email2") is null

I'm getting this for any other fields, getChecked() is also failing. I can't seem to find any other problems and this has only stopped working.

Any help would be appreciated.


I'm not sure this looks like a FBJS problem. Check you do actually have an element with the ID 'email2', from the sounds of that error message, your page doesn't have an 'email2' at all, which is why it can't get the value.

0

精彩评论

暂无评论...
验证码 换一张
取 消