I’m using the following code to change a variable in my plugin. The variable is the delay in a slideshow:
$('input[name=changeDelay]').change(function() {
settings.delay = $(this).val();
});
When I alert the modified value, I get my change, but the problem is the delay doesn’t actually change in the slideshow. If I change the delay manually, it works fine.
It is being changed. That works. The slideshow appears to not take this new value though, is there a way of making it?
Here’s a demonstration of the problem: http://jsfiddle.net/wdqPN/
The slider plugin doesn’t know what to do with the value because it’s a string. You have to parse it into an int for it.
Change:
to