1

I need a simple jQuery price slider in my site. From a £0 to £1000 amount.

Say the browser sets the slider to £100 (for example), I then need a buy now button that transfers to Paypal with the amount the slider is set to!

I've not got a lot of experience with javascript any idea's?

Thanks in advance,

Neal

5
  • possible duplicate of Price range slider for my website Apr 16, 2012 at 13:08
  • 1
    (Java has nothing to do with Javascript); simple slider jqueryui.com/demos/slider
    – Alex K.
    Apr 16, 2012 at 13:08
  • Try google "jQuery price slider" and press "I feel lucky" Apr 16, 2012 at 14:06
  • @Scott: The one you've proposed as a duplicate is a range slider. He's after a one-handle slider from 0 to 1000... Apr 16, 2012 at 15:26
  • @RobertKoritnik - It's still the jQuery UI slider. Range is just one dimension of the slider object. Apr 16, 2012 at 15:30

2 Answers 2

3

Use the jQuery UI slider: http://jqueryui.com/demos/slider/

In the change event of the slider you can then update the value of the hidden form field containing the money amount.

3
  • 1
    This doesn't answer the OP's entire question. Apr 16, 2012 at 13:14
  • @Scott: Doesn't, right. But he'll have to figure out PayPal by reading integration documentation. It's not on us to deliver the cake for them to eat... Apr 16, 2012 at 15:27
  • Initially I didn't mention the change event Apr 16, 2012 at 15:42
0

I would consider giving the HTML 5 slider a look into. Should be on the lines you are looking for.

here is a quick tutorial:

http://webhole.net/2010/04/24/html-5-slider-input-tutorial/

1
  • Not even supported in the currently stable firefox. Apr 16, 2012 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.