jQuery & C5 Add/Edit Form Limits?
Permalink
Just wondering if there are any limits to Jquery within the "Add" and/or "Edit" actions on a Block. I am basically trying to hide/show a couple text boxes based on a Select value. Works perfectly in Javascript using onchange event (embedded in HTML), but this is poor practice and ideally would prefer to handle with jQuery in the head:
style event syntax. But jQuery only seems to "trap" the event on the next Form reload. Meaning:
1. I add a form.
2. Click on the value in the Select that *should* trigger the jQuery Change event.
3. Nothing happens.
4. But, if I save to DB and re-edit the form, voila, the hidden field pops up (with the appropriate jQuery fadein, show, slide effect).
Any thoughts? I am rather new to jQuery, so if I'm missing something obvious, please lemme know.
--djn12313
$("#show").change
style event syntax. But jQuery only seems to "trap" the event on the next Form reload. Meaning:
1. I add a form.
2. Click on the value in the Select that *should* trigger the jQuery Change event.
3. Nothing happens.
4. But, if I save to DB and re-edit the form, voila, the hidden field pops up (with the appropriate jQuery fadein, show, slide effect).
Any thoughts? I am rather new to jQuery, so if I'm missing something obvious, please lemme know.
--djn12313