im pretty new to js/jquery and i was trying to set a varable on one page, store it, move page and then use the varable on the new page.
ive made an a tag like this
a id="ex1" href="/example.hmtl">ONE<a>
that on click would take you to the page /example.html and set a varable called 'image' to 1 for this the jquery id use is
$("#ex1").click(function() {
var image = 1;
});
once your on page example.html id like the value of the varable 'image' to be loaded into the the value of startAtSlide
$('.iosSlider').iosSlider({
startAtSlide : //value of var 'image' goes here,
snapToChildren : true
});
is that possable to do, if so am i going about it in the right way ?