Since CPanel’s documentation is “perfect” and covers everything, I decided to post some tips and tricks here.

Javascript:

CPANEL.utils.toggle_more_less – function(toggle_el, text_el, state):

  • toggle_el: couldn’t decipher at a glance what this is for, I use this, as per some CPanel pages’ code
  • text_el: the id of the DIV to toggle
  • state: either “more” – to show¬† – or “less” – to hide – the DIV
  • the entire JavaScript code for that function is in /usr/local/cpanel/base/cjt/cpanel-all-min.js

LivePHP: