Afternoon all.
A little Friday treat for you all.
I have the following bit of jquery that makes inputs read only based upon and another input's selection:
That works fine and dandy, well how I want it to work.
However, in my situation I have about 13 "checkbox1a" 's with their associated checkbox1b & textbox1.
As you can see from the script, I could just replicate this code but as we all know, copy and paste is bad (although appeals on a Friday afternoon) so I was wondering how I could go about attacking this so that I can minimise code but achieving the same result,
Any pointers greatly appreciated.