Call elements with jQuery after submit form
Hi, I'm new to jQuery.
I've created a form with 3 sliders. The values of the 3 sliders are added and printed to a label. If the added value equals 80, a button is enabled.
This works fine before the form is submitted.
But after submitting the form (post to same php-page), I cannot get the values of the sliders, change the label-text and enable/disable the button again.
I did manage to call the event again with .on("change",function(){ ... });
How to call/activate/bind the other elements?
$("#sliders").on("change", function(){
var SliderValue = parseInt($("#slider0").val())+parseInt($("#slider1").val())+parseInt($("#slider2").val());
if (SliderValue==80){
$('#submit_next').button('enable');
}
else
$('#submit_next').button('disable');
$("#lbl1").text(SliderValue+'/10');
});