show a div in html using jquery -
i'm working on simple project want know when click on login button want thing 
and when click except div div should disappear can 1 tell me how can that? sorry bad english hope make problem clear
<htm> <head> </head> <body> <div> </div> </body> </html>
you can using css.
add class div
<div class="somediv"></div> css
.somediv{ width:400px; height:400px; z-index:1000; background:yellow; position:fixed; top:50%; left:50%; margin-top:-150px; margin-left:-150px; display:none; } jquery: show
$(".somediv").show() on click of login button
$("#login").click(function () { $(".somediv").show(); }); demo: http://jsfiddle.net/9umyd/ , http://jsfiddle.net/9umyd/1/
Comments
Post a Comment