Jump to content
UBot Underground

2 slider --> change attribute --> same class


Recommended Posts

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" ?  :unsure:

 

Can anyone help me please ?

Link to post
Share on other sites

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. :D

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...