Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass selected option value into jslider #77

Open
asimkh opened this issue Jul 30, 2013 · 0 comments
Open

pass selected option value into jslider #77

asimkh opened this issue Jul 30, 2013 · 0 comments

Comments

@asimkh
Copy link

asimkh commented Jul 30, 2013

Hi, I am trying to pass the value for slider from option dropdown value

when page loads, slider option value can be set using $('#profit').slider('value', x);

but when someone selection option menu to choose slider value its not working.

// option menu code
$("#ddl-loan-type").change( function() {
selected_state();
$('#profit').slider('value', x);
$("#profit").slider().update(); // getting error on this line i.e. update funcation not working

     });

//slider options code
var ProOptions = { from: 0,
to: 6, step: 0.1, round: 1, limits: false, scale: ['0%','1%' ,'2%' ,'3%' ,'4%' ,'5%', '6%'],
format: { format: '##.0', locale: 'de' }, dimension: ' %', skin: "round",
onstatechange: function( value ){
},
callback: function( value ){
}
};

$("#profit").slider(ProOptions);
$("#profit").slider("value", 5);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant