Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- html:
- <form name="login" action="" method="post" accept-charset="utf-8" class="logowanie">
- <a href="rejestracja.html">Przypomnij hasło</a>
- <input type="text" name="login" placeholder="Login" required>
- <input type="password" name="password" placeholder="Hasło" required>
- <input type="submit" value="Zaloguj">
- <a href="#" class="nosticky">X</a> <- to to to :D
- </form>
- js:
- jQuery(".nosticky").click(function(){
- if(jQuery(".user").hasClass("usersticky")) {
- jQuery(".user").removeClass("usersticky")
- } else {
- jQuery(".user").addClass("usersticky")
- }
- });
- css:
- .nosticky {
- padding-left: 10px;
- }
- .usersticky {
- position: absolute !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement