N
Nil
Ok, so I have a few problems I am interested in solving regarding
forms. First off I am just learning javascript and jquery and php.
1) I saw a form not too long ago that had elements dependent on
previous elements. eg. You click the newsletter check box on the form
and it actives newsletter specific form content that was previously
grayed out. I am interested in learning how to do this.
a) I am pretty sure I could figure out how to stuff the dependent
content into a separate div and hide it, but how was it grayed out and
then activated after a given input?
b) I am also slowly starting to learn jquery, is there a jquery
solution for this that works nicely (plugin or core module, either is
fine)
2) Validation with jquery. I've read through a few tutorials that
deal with the jquery plugin 'validation'. For the most part I have it
under control. The one thing I haven't figured out yet is how to
control where the error messages are being spit out.
As best I can see by default the plugin is adding a <label> tag and
dumping the message into that on a field by field basis. What I want
to learn how to do is dump the error messages into their own unique
pre-existing element. What I mean by that is I want each form element
to have it's set of errors be dumped into the DOM where ever I
choose. I hope that made sense?
Cheers,
Kory
forms. First off I am just learning javascript and jquery and php.
1) I saw a form not too long ago that had elements dependent on
previous elements. eg. You click the newsletter check box on the form
and it actives newsletter specific form content that was previously
grayed out. I am interested in learning how to do this.
a) I am pretty sure I could figure out how to stuff the dependent
content into a separate div and hide it, but how was it grayed out and
then activated after a given input?
b) I am also slowly starting to learn jquery, is there a jquery
solution for this that works nicely (plugin or core module, either is
fine)
2) Validation with jquery. I've read through a few tutorials that
deal with the jquery plugin 'validation'. For the most part I have it
under control. The one thing I haven't figured out yet is how to
control where the error messages are being spit out.
As best I can see by default the plugin is adding a <label> tag and
dumping the message into that on a field by field basis. What I want
to learn how to do is dump the error messages into their own unique
pre-existing element. What I mean by that is I want each form element
to have it's set of errors be dumped into the DOM where ever I
choose. I hope that made sense?
Cheers,
Kory