के साथ क्लिक पर div #id दिखाएं जब एक div क्लिक किया जाता है, तो मैं अलग-अलग div प्रकट करना चाहता हूं।jQuery
इस प्रकार, जब '# संगीत' क्लिक किया जाता है, तो मुझे दिखाई देने के लिए '#musicinfo' चाहिए।
#music {
float:left;
height:25px;
margin-left:25px;
margin-top:25px;
margin-right:80px;
font-family: "p22-underground",sans-serif;
font-style: normal;
font-weight: 500;
font-size:13pt;
}
#musicinfo {
width:380px;
margin:25px;
font-family: "p22-underground",sans-serif;
font-style: normal;
font-weight: 500;
font-size:13pt;
line-height:1.1;
display:none;
}
और jQuery:
यहाँ सीएसएस है
<script type="text/javascript">
$("#music").click(function() {
$("#musicinfo").show("slow");
});
</script>
किसी भी मदद की जो भी होगा महान :)
और आप एक '$ (document) .ready में लपेट अगर वह()' विधि, तो यह काम करेगा। आपको क्या समस्या है? –