jQuery Slider - Update Span on Slide -


This is probably something simple to solve, however, I have some difficulties finding the right answer.

Basically, I have a jQuery slider that I am using. Each time the slider is changed, I & lt; Select & gt; Based on changing box & lt; Span & gt;

In order to see the code in action, please see

As you will see, with each slide exactly & lt ; Select & gt; updates the box, but & lt; Span & gt; only updates once every time i & lt; Select & gt; I would like to update as , because eventually, I & lt; Select & gt; The box will hide, any help on this will be greatly appreciated.

You are only bringing a time text here:

  Var hour_value = $ ("# hours: selected"). Text ();  

To set more text, use that variable:

  $ (".time_viewer"). Text (hour_view); Instead, you need to bring the option  every  time, because the change in options (and the original variable will not be updated), such as 

  $ (".time_viewer"). Text ($ ("# hours: selected"). Text ());  

.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -