how the browser execute this javascript code: window.location.href="url" -
$("#retrieve-cancel-reservation").click(function(){ window.location.href="reservation.php?action_type=retrieve"; $('#reservation_bar').css('display','none') });
there div,id=reservation_bar in redirect link page. $('#reservation_bar').css('display','none') have no effect @ end. seems make mistakes how javascript code execute .
**does can explain how browser execute code above?
why display=none ont work? lot.**
i don't think can alter css of page, doing. keep window.location redirect, , hide $('#reservation_bar') on new page on load. include on new page:
$( document ).ready(function() { $('#reservation_bar').css('display','none'); });
Comments
Post a Comment