javascript - navigating to new page in jquery touch -
i trying navigate new div/page based off of javascript condition. add tag href "#thispage" using jquery touch, it's based off of dropdown menu, want window.location.href = "#thispage" doesn't work same "#home" still has class "current". can remove class "#home" , add "#thispage", messes further navigation jq touch. jq touch has goto function passes in topage, animation, , reverse there way access javascript? i'm stuck.
function getpage() { var id = document.getelementsbyname('id')[0].value; if (id == 1) { //window.location.href="#thispage"; //$(goto('#thispage','slideleft')); } else { //window.location.href="#thatpage"; //$(goto('#thatpage','slideleft')); } }
Comments
Post a Comment