I have controls on .aspx page and I want to apply jquery effect I successfully did it. But the problem is when I click on the button the hidden div is shown but the content is not visible (I have map inside div, it is blank only marker can be seen). When I go to check the error in the console, the map becomes visible.. I also tried with html button but didnt succeed.
Here is my code:
<asp:Button ID="btnFind" runat="server" Cssclass="btn btn-info btn-xs" style="margin-left:185px;margin-top:8px;" Text="Find location on map" ></asp:Button>
<div id="map" style="height:300px;width:600px" class="panel panel-body"></div>
<script>
$(document).ready(function () {
$("#map").hide();
$("#cpdMain_cpdCitizenProfile_btnFind").click(function () {
$("#map").show();
return false;
});
});
</script>
[![In the first pic map is not visible and after I click on console it becomes visible.][2]][2]