in this var: var previousmenu = $("#ipadmenu section.current").data('order') + 1;, this expression $("#ipadmenu section.current").data('order') equals 0.
Unfortunately the result of this is 01 and not 1. Why is this?
This for example seems to work:
var previousmenu = $("#ipadmenu section.current").data('order') - 1; and gives me -1.
Thank you for your help.