Hi
I need jQuery to add a class to any form element that has no class allready. I made up a function, the hasNoClass.
Is it possible to do in the real life? Pseudo code: add class to "classless" form tag jQuery("form").hasNoClass().addClass("gotClass");
Alternatively it can be done by a "add class to 3rd form start tag on page. No clue how that would be either, but there may be a position or count function Pseudo code: add class to third form tag: jQuery("form").postition("3").addClass("gotClass");
Wow! That was two questions! I only need the one but answer on both would be appreciated just for the sake of knowing and maybe future use.
Br. Anders