Cytat(viking @ 29.09.2012, 14:40:34 )

Podaj kod, poczytaj o preventDefault()
Kod mam podstawowy:
Kod
<!DOCTYPE html>
<html>
<head>
<style>
.test{ background:#de9a44; margin:3px; width:80px;
height:40px; display:none; float:left; }
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
Click me!
<div class="test"></div>
<div class="test"></div>
<div class="test"></div>
<script>
$(document.body).click(function () {
if ($(".test:first").is(":hidden")) {
$(".test").slideDown("slow");
} else {
$(".test").hide();
}
});
</script>
</body>
</html>
Wydaje mi sie ze problem jest w tym iż obojetnie co gdzie wpisze i nie jest w divie test, to go rozwija.
co do preventDefault() to nie widze tam płynnego przejsca