trigger disabled from a javascript function

11 views
Skip to first unread message

Jonathan Askey

unread,
Feb 27, 2020, 7:38:20 AM2/27/20
to Angular and AngularJS discussion
Be gentle :) - I am just starting my vertical learning curve with this tool

I am sure this is a day one, lesson one question - but it's given me a few moew grey hairs in the unsuccessful pursuit of solving

I have spend hours with this so am reaching out for help as I cannot solve having Googled hundreds of time looking for the answer


I can disable/enable the verticalSlider1 from the checkbox button

How do I do this from a javascript function? - I have literally tried a hundred or so permutations unsucccessfully

Thank you in advance
Enter code he<article>
<label>Disabled <input type="checkbox" ng-model="verticalSlider1.options.disabled"></label>
</article>

  <article>
    <h2>Vertical sliders</
h2>
   
<div class="row vertical-sliders" style="margin: 20px;">
     
<div class="col-md-2">
       
<rzslider   rz-slider-model="verticalSlider1.value" rz-slider-options="verticalSlider1.options"></rzslider>
     
</div>      
    </
div>
 
</article>re...

Sander Elias

unread,
Feb 27, 2020, 8:53:48 AM2/27/20
to Angular and AngularJS discussion
Hi Jonathan

I suspect You can do this in your js:
verticalSlider1.options.disabled=true;

Regards
Sander
Reply all
Reply to author
Forward
0 new messages