jQuery Wrapper API
Component type
Maintenance status
Development status
Component created
Component changed
This module offers a PHP function that will wrap your inline Javascript for you in the manner described at http://drupal.org/node/171213.
For example, the following PHP code:
$jquery = '$(".title").hide();';
print jquery_wrapper_api_wrap('myNodeTplPhp', $jquery);
prints the following HTML :
