1
The function I created in Jquery, is not being called in the 1st click, it is only triggered in the 2nd. I am using Asp.net, C#, I need the panel component to start hidden, with this, when clicking on the tag p it appears and so call the toggle() method every time I click on it. My code is this:
<script type="text/javascript">
$(document).ready(function () {
$("#pnlSalas").css('visibility', 'hidden');
$('.a').click(function () {
$("#pnlSalas").toggle();
$("#pnlSalas").css('visibility', 'visible');
});
});
</script>
Tried to use the method on() ?
– Jefferson Alison
I tried and it still works .. :(
– AndreeH
@Renan I’m using the Asp.net panel, I put it just to know what I’m playing with.
– AndreeH