Using jQuery selectors in custom block's add.php and edit.php
Permalink
Hi all
I'm building a simple custom block and i'd like to use jQuery to manipulate some elements in the add.php and edit.php forms in real time, as the user is entering their information for the block. Trouble is, I can't get anything jQuery to fire.
I think it might be because the necessary js isn't inside the jQuery $(document).ready() function, but how can one get it in there from the auto.js of a custom block? What's the best way to achieve this?
I'm building a simple custom block and i'd like to use jQuery to manipulate some elements in the add.php and edit.php forms in real time, as the user is entering their information for the block. Trouble is, I can't get anything jQuery to fire.
I think it might be because the necessary js isn't inside the jQuery $(document).ready() function, but how can one get it in there from the auto.js of a custom block? What's the best way to achieve this?