Developing in jQuery? Use $.dump instead of alert

I just ran into the $.dump jQuery plugin. It sure makes troubleshooting and figuring out jQuery a whole lot easier. Here is how you include it in your page.

  • Download the plugin at here
  • Include it in your HTML like so
    <script type="text/javascript" src="jquery.dump.js"></script>
  • Now just include $.dump(object) somewhere and replace object with an object you want more information on

The pop-window you will get
dump

Comments

This was quite useful -

This was quite useful - thanks

THANK YOU!!!!!!!!!!!

THANK YOU!!!!!!!!!!!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal5>, <drupal6>, <javascript>, <php>, <sql>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options