Skip to content

Toggle properties via js

pincher2012 edited this page Nov 15, 2014 · 1 revision

Please put explanation here

I have

var editor = new JSONEditor(selector, options);

$('.js-type').on('change', function(){
    if (this.value == 1){
        //enable some properties
        //disable others
    } else if (this.value == 2) {
        //enable some properties
        //disable others
    }
  });

How to enable/disable existing properties