[TriLUG] Javascript ( and jQuery ) questions

Igor Partola via TriLUG trilug at trilug.org
Sat Apr 18 23:12:42 EDT 2015


jQuery('.something') returns an array-like object which contains one or more DOM elements (representation of your HTML tags). You can only use jQuery('.foo').serialize() if .foo is a form. Otherwise, it is meaningless. I suggest you inspect the results of these functions in the developer console, and not via alerts.

Igor


More information about the TriLUG mailing list