Manipulating DOM using JQuery API
I am trying to manipulate the html DOM on my page using JQuery api when the page is loaded. I've added the following code to the Load event for my Home page (also tried adding it to the Page Show event).
I know the code is executing because I can see the alert box, however, the DOM is not modified. It's working fine outside of Appery. Can you please advise if I am doing something wrong here?
code
$(document).ready(function() {
alert($('#Home_panelMenu').html());
$('#Home_pageHeader').before($('#Home_panelMenu').html());
$('#Home_panelMenu').remove();
});
/code