Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to programmatically fire an event to click inside an input field without using trigger, change or click events

I know, the title sounds insane, but in an attempt to refactor some code, I am having trouble figuring out how to programmatically fire an event without using the following:

  1. trigger
  2. change
  3. click

The code below loads on a hook, and all I need to do is click inside the ID element below, but ‘click();’ or .on(‘click’) aren’t an option.

$("#id").data("kendoDropDownList").text(data[i].Text);
$("#id").data("kendoDropDownList").trigger('change'); // code that needs to be refactored

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think you can use focus function.

$("#id").data("kendoDropDownList").focus()
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading