Get onpage to work properly

I am trying to get this script to work with pageload; I tried .ready and .load , and I still can't get it to work. I use ' <body onLoad="document.emvForm.EMAIL_FIELD.focus()"> on my site. But that doesn't matter, right?

Update: at this url, the page loading is still not working for me, what am I doing wrong? http://tinyurl.com/79azbav

+2
source share
1 answer

An element with id "entertext" probably does not have its own "ready" event.

You are probably thinking about this:

 $(document).ready(function() { $("#entertext").shake(); }); 

With $ before ("#entertext"). shake ();

+6
source

Source: https://habr.com/ru/post/900970/


All Articles