jQuery dasturlash tilida Hide va Show funksiyalari
Jqueryning Hide()
va Show() funksiyalar orqali biz HTML5 elementlarni ko’rsatishimiz va
aksincha ko’rsatmasligimiz mumkin.
Bizga kerakli kodlar :
<!DOCTYPE html>
<html>
<head>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide();
});
$("#show").click(function(){
$("p").show();
});
});
</script>
</head>
<body>
<p>Agar Hide tugmasini bossangiz men ko’rinmayman. </p>
<button id="hide">Hide</button>
<button id="show">Show</button>
</body>
</html>
Keyingi dastur kodlarida ko’rishguncha !
Comments
Post a Comment
Iltimos, fikrlaringizni yozib qoldiring !