Tuesday, May 22, 2012

jquery shows wrong page

This is the jquery

$(document).on('change', '.ui-slider-switch', function () {

if ($(this).val() == 'on') {

} else {



<div id="switch" data-role="fieldcontain">      
<select name="slider" id="flip-a" data-role="slider">
<option value="off"></option>
<option value="on"></option>

In my site I sometimes use a custom URL (And get data out of it with $ _GET).
When the page reload I'm always getting $("#content2").show(); instead of $("#content1").show();

No comments:

Post a Comment