javascript - Clear Form dropdowns and ckeditor control in asp.net -


i have asp.net web page containing 5 6 dropdownlist , few texboxes along ckeditor .net control in it.

i have reset button , trying clear dropdownlist, textbox , ckeditor text on clicking it.

below javascript clear form data

function resetform(){    this.form.reset();    //document.getelementbyid("frmnew").reset();   }

this code clear ckeditor text

        function resetckeditor() {              var myinstances = [];              (var in ckeditor.instances) {                  ckeditor.instances[i].name;                  alert(ckeditor.instances[i].name);                  ckeditor.instances[i].updateelement();                  ckeditor.instances[i].setdata('');              }          }

i tried merge 2 codes in single function 1 working. either resetting form or clearing ckeditor. not able things reset default.

is there way this? highly appreciated.


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

loops - Spock: How to use test data with @Stepwise -