Enabling/ disabling drop down list control

  • 17 February 2020
  • 1 reply
  • 25 views

Is it possible to disabling and enabling K2 drop down list by JQuery? Thank you in advance.


1 reply

Badge +7

Hello  @Sumit 


 


Create a datalabel in ur smartform , Make sure to have literal property checked for this data label .


Note: In my scenario , my first textbox name = a


my second textbox name = b


Add expression to this datalabel , which has the following 


 


 


<script type="text/javascript">
$('[name="a"]').keyup(function(event){
$('[name="b"]').removeClass("disabled") ;
$('[name="b"]').removeAttr("disabled");
});
</script>


 


on change on textbox named "a" , it will enable the second textbox "b"

Reply