How to add JavaScript to admin page
-
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘How to add JavaScript to admin page’ is closed to new replies.