Jump to content

Modifying the next form element after a particular character is detected


justinbriggs1

Recommended Posts

Hey everyone, here is an interesting Javascript (preferably Jquery) script that I need a bit of help on. I'm pasting forms created in another application into our CMS, and I'd like to make it automatic to add a required class to the inputs.Here is the summary:- Search the document for an asterisk- After an asterisk is detected, add a particular class to the next consecutive form element.Simple to explain I think, but a little over my head. Any help would be appreciated.

Link to comment
Share on other sites

Just want to make sure I understand you. you have a textarea in your CMS that you are pasting code into. you want a jQuery script to search for an asterisk and when it is found add a class to the first form element (<form> not <input> right?) it finds following the asterisk?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...