jQuery To Detect All Forms (And Their IDs) On A Given Page
Do you know if this code exists anywhere and if so, can you please point me in the right direction. I can write this custom, if needed, but if it already exists--that would certainly save me time.
The idea is to detect all forms and their relative IDs that exist on the page and then loop through those IDs passing them to your Google OnClick Event Tracking code: ( http://www.gravityhelp.com/forums/topic/onclick-tracking#post-7734).
The purpose of this is to:
1.) To automatically create the necessary Event Tracking code, instead of manually having to add hard coded Form IDs every time a new form is created--which is a bit labor intensive in the long run.
2.) To reduce load time--as opposed to trying to loop through all form IDs in the database--by only writing the Google code for forms detected on that page.
Thoughts?