मैं इस उदाहरण के साथ jquery का प्रयास कर रहा था:
$(document).ready(function(){
$("button").mouseover(function(){
$("p#44.test").css("background-color","yellow");
$("p#44.test").hide(1500);
$("p#44.test").show(1500);
$("p#44.test").css("background-color","red");
});
});
मैं निम्नलिखित होने की उम्मीद है:
1. Color of <p> to turn yellow
2. <p> to slowly fade
3. <p> to slowly show
4. Color of <p> to turn red
लेकिन यह वास्तव में क्या हुआ है:
1. <p> turned red
2. <p> slowly hid away
3. <p> slowly showed
ऐसा क्यों है?