hide and show buttom create kaise kare
hide and show buttom create करने के लिए नीचे code को copy कर ले
और अपने blog मे past कर ले
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide();
});
$("#show").click(function(){
$("p").show();
});
});
</script>
</head>
<body>
<p>my name is malay pramanik(यहा पर आप कुछ भी लिख सकते है )</p>
<button id="hide">Hide</button>
<button id="show">Show</button>
</body>
</html>
my name is malay pramanik
यहा पर आप देख सकते है की hide button जैसे ही click किया जाता है ऊपर लिखे word गायब हो जाते है और जैसे ही show button को click किया जाता है तो word वापस show होने लगता है

Gd
जवाब देंहटाएं