Using jQuery shake effect on document ready -


i'm trying have element on page shake when page loads. shake briefly(about 2 seconds) when username , password incorrect on sites.

here have tried.

       <div id="login_wrapper">           <div id="login_header"><div id="header_title">enter login details below</div> </div>           <div id="login_input_wrapper">           <div id="username_wrapper">             <div id="username_label"><h3>username</h3></div><div id="username_input"><input type="text" class="text_field" id="login_username" name="login_username" placeholder="username123"></div>           </div>          <div id="username_wrapper">            <div id="username_label"><h3>password</h3></div><div id="username_input"><input type="password" class="text_field" id="login_password" name="login_password" placeholder="itsasecret"></div>          </div>         <div id="" class=""> <button class="login_button" value="submit"> login </div>       </div>     </div>      </div>    <script type="text/javascript">  $( document ).ready(function() {   $( "#login_wrapper" ).effect( "shake" ); });    </script> 

i have placed before end of body in document, getting no response. i'm new jquery, can me see whats wrong code please?

.effect() part of jqueryui. have load jquery , jqueryui (in order) make work.

check jsfiddle


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -