javascript - Slider Change Handler -


i'm creating range slider dynamically , i'm having trouble getting change handler on working.

so it's in code:

$('#layerstab').html("<input type=\"range\" id=\"layerslider\" value=\"0\" min=\"0\" max=\"100\" \><br\>"); 

and yeah in html its:

<div data-dojo-type="dijit.titlepane" id="titlepanelayers" data-dojo-props="title: 'layers , legend'" open="false">           <div id="layertabs" >             <ul></ul>            </div>        </div> 

how add event handler this, when slider changed can values changed to?

you can on method , this:

$('#layerstab').on('change', '#layerslider', function(e){     console.log($(this).val()); }); 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -