Document ready code stopped working
-
I noticed that code that I used to populate the email field (via grabbing a url param and then setting the value of the email field with jQuery) stopped working recently.
The solution I came up with was to wrap the code in another document ready block:
$(function() { var email = getUrlParameter('email'); $('#user_email').val(email); });Not sure why this is necessary when the plugin itself mentions as a caption under the jQuery section that the code there will be wrapped already?
Anyway, the above made it work again so if this helps anyone else or gives the developer a hint to help fix other related bugs then all good 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Document ready code stopped working’ is closed to new replies.