VIPStephan, thank you for your reply. I did know actually that ids were only allowed once, but forgot on this specific post. I am still learning so excuse any seemingly stupid mistakes I may make or questions I may have. The solution you presented above is simple. I like it, and it works perfectly for a finite/defined amount of input forms on a page. Occam's razor, right?
However, let's say there is an undefined amount of input forms on a page, generated by a loop somehow with PHP. How can the id/name attributes be created in a way that jQuery would be able to know which form element is being worked on?
For example, consider a user profile page. Users may post comments back and forth from profile to profile. The amount of comments a user has can be anywhere between 0 and a very large number. All comments go into a PHP loop and are printed out onto the profile page when it is loaded. Older, more active users, would have way more comments on their page than newer users. Now, let's say that underneath every comment, there is a textbox allowing users to post a reply to that comment (similar to facebook, I guess). When a reply is submitted, a new entry in the SQL database must be created, with one of the values being the ID of the post being replied to. How can jQuery know what comment the user is posting a reply to?
The example I ask above is hypothetical but I also need to know it because the next step of an application I am working on is a user profile page that works in this very specific manor, and I'm not sure how to do it yet. So, any help would be extremely appreciated.