[ad_1]
Hi,
I would like to add a JavaScript code to admin page only. I didn’t find any option for it. I am able to add JS code to frontend only.
For example:
var oldVal = "";
$("#textarea").on("change keyup paste", function() {
var currentVal = $(this).val();
if(currentVal == oldVal) {
return; //check to prevent multiple simultaneous triggers
}
oldVal = currentVal;
//action to be performed on textarea changed
alert("changed!");
});Could you help me how to add this code to admin page? What and how can I do this?
- This topic was modified 1 day, 8 hours ago by .
