is over-written by the second use. I'm guessing you should have two separate sliders, #jQuerySlider1 and #jQuerySlider2. Otherwise, you should merge those two .slider() calls into one: how can one slider have two sets of min and max values?! Edited: You can, but they need effectively the same step.
Once you've resolved this you would then use code like this:
Added: To merge them you need to use the same number of steps, and do something like:
Code:
$( "#amount" ).val( "£" + ui.value *50 + 149);
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
Last edited by AndrewGSW; 09-22-2012 at 01:51 AM..
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
Basically I need, #page steps to be 1-5 and the #amount steps to be 149,199,249,299,349 (149+50 for 4 steps)
Ahh, you sneakily dropped the min: 0 requirement in your original code
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
This allows a price of 0 but the OP stated a minimum of 149. But anyway..
Although, £149 for zero pages sounds a bit steep
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS
Last edited by AndrewGSW; 09-22-2012 at 10:10 PM..
the code in post #9 gives 0 for 0 pages and 149 for 1, 199 for 2, etc. Post 10 was just playing around. You could even take it further, and not worry where the minimum value starts...
Code:
var prices={40:34,80:99,120:862,160:10482};
...
$( "#amount" ).val( "£" + prices[ui.value] );
... in fact, you don't even need to worry about creating objects because you can use the slider's own step property to divide the value back to array indices...