Skip to content
Menu
Justin Ball
  • About
  • Privacy Policy
Justin Ball

Month: February 2011

Converting a jQuery Object into a String

Posted on February 8, 2011November 1, 2021

I’m so used to everything having a ‘to_s’ method that when it’s not there I feel like going out a kicking puppies. In jQuery you can always get the contents of a jQuery object thus: Html: var html = myObject.html(); </pre> Text: var html = myObject.text(); </pre> That’s great and has been extremely helpful over…

©2025 Justin Ball | Powered by SuperbThemes & WordPress