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.
Comments
Post a Comment