Beele 3 Posted September 4, 2014 Report Share Posted September 4, 2014 Hi i have a page with 2 sliders, an age-slider (from - to) and a distance-slider (up to) <div id="ageSlider" class="noUi-target noUi-ltr noUi-horizontal noUi-background"> <div class="noUi-base"> <div class="noUi-origin noUi-connect" style="left: 9.0909091%; "> <div class="noUi-handle noUi-handle-lower"> </div></div> <div class="noUi-origin noUi-background" style="left: 31.8181818%; "> <div class="noUi-handle noUi-handle-upper"> </div></div> </div></div> <div id="distanceSlider" class="noUi-target noUi-ltr noUi-horizontal noUi-connect"> <div class="noUi-base"> <div class="noUi-origin noUi-background" style="left: 9.0909091%; "> <div class="noUi-handle noUi-handle-lower"> </div></div></div></div> this works fine for the age slider: change attribute(<class="noUi-origin noUi-connect">, "style", "left: 15%; ") change attribute(<class="noUi-origin noUi-background">, "style", "left: 30%; ") but the distance slider has the same class="noUi-origin noUi-background". How can i say: Do it for id="ageSlider" or for id="distanceSlider" ? Can anyone help me please ? Quote Link to post Share on other sites
UBotDev 276 Posted September 4, 2014 Report Share Posted September 4, 2014 Have you tried to play around with "$element offset" function/selector? I think that will be one of the rare solutions for your problem... Quote Link to post Share on other sites
Beele 3 Posted September 7, 2014 Author Report Share Posted September 7, 2014 thx @UBotDev I found a solution for this !! Quote Link to post Share on other sites
UBotDev 276 Posted September 7, 2014 Report Share Posted September 7, 2014 It would be nice if you could share your solution, so others that may have similar problems can learn from this... Quote Link to post Share on other sites
Beele 3 Posted September 8, 2014 Author Report Share Posted September 8, 2014 Usually I do that too. But I found no solution to use the slider separated and so a can´t help others for this. To change the slider was no the right way. At the end of the code i found this: <input type="hidden" id="alter_von" name="alter_von" value="18"> I have changed only the value="18" and it works. And at the end 1 saw, that the new URL after the search was: http://www.URL.de/search/?search=boy_sucht_girl/age_18-30/de/online_first/page_1 And the simplest way was to navigate directly to this pages. Quote Link to post Share on other sites
UBotDev 276 Posted September 8, 2014 Report Share Posted September 8, 2014 Thanks for sharing that, I'm sure it'll help someone before going over everything...sometimes it's just easier to use the URL. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.