ChangePage not working in WIndows Phone 7

ChangePage not working in WIndows Phone 7

I have 3 pages, home, settings and help .
I am using anchor tags and a javascript function to switch pages.
One example is given below to switch from home page to settings page.

 
I have the following anchor tag in the header of home page
<a    onclick="load_settings()" data-icon="gear" data-inline="true" >Settings</a>
 
and a corresponding function
 
 function load_settings()  {
      $.mobile.changePage($("#settings")); 
}
 
This works fine in IE9. It does not work in Windows Phone 7. The home page renders. When I click on the settings button I see the button being clicked but nothing happens.