I created two dropdpwn calendar in my form with these codes:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#Calimg1').click(function () {
$('#calblock1').slideToggle("slow");
});
});
$(document).ready(function () {
$('#Img1').click(function () {
$('#Div2').slideToggle("slow");
});
});
</script>
I want to do another thing but I dont know how? If one of this calendar is open, the user is not able to open another one. how can I do that?
You can use
is(':visible'):The
#Calimg1and#Img1are assumed to be the ids of your calendars, modify accordingly (inisAnyVisiblefunction) just in case they are different.