Working with jQuery events

primas

New Member
I've been working as a web developer for a couple of years (after previously being a client-server developer), and over the past year I've been focused on making myself better at client-side programming. My question is more of a fundamental one than something specific. I've got a couple of ASP user controls that are fieldsets nested within a div. Both are contained in a div that's a simplemodal jQuery panel. One is a form for a test submission, and the other is a form that allows you to add a student w/o leaving the modal popup. Their visibility is toggled when the other becomes visible.I would do it sequentially (i.e. have them add the student before the test), but the student may already exist, so I've got an autocomplete input set up. Only if the student doesn't already exist will they add a new one.I'm handling all of it (including the insert of the student) using client-side code. I need to have controls with the student's name, id, etc. populate on the test form after being added, but I don't want to explicitly set the controls by ID in the test form b/c I'll be using this panel on other forms. What would be the best way of implementing this? My first thought was to handle an event when the student div becomes invisible, but I don't know if such an event exists, and that led me to think there might be a more conventional way altogether.I hope that all makes sense. I can post some code if any specifics are needed
 
Back
Top