ik heb deze programmatie:
PHP
<html>
<head>
<style>
p { color:blue; margin:8px; }
.imgshow {
display: none;
background-image: url("http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif");
}
</style>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<input id="naar" type="text" value="some text"/>
<input id="naar2" type="text" value="some text"/>
<p></p> <br /> <div id="imgshow"></div>
<script>
$("#naar").keyup(function () {
if ( $("#naar").val() == "testing" ) {
$("#imgshow").fadeIn("slow");
$("p").text("success!");
}
else {
var value = $(this).val();
$("p").text(value);
}
}).keyup();
</script>
</body>
</html>
Toon Meer
wanneer ik nu "testing" doe laat hij braag success! zien maar hij fade die css niet in, weet iemand waarom dat is?
Aangezien ik nergens kan lezen of ik ook de display property van de css aan moet passen vraag ik jullie hulp!