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

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -