2012-08-13, 05:55 AM
I am working on my board profiles using the excellent custom profilefields from RateU. One of the things I am trying to do is to make a list of options a user can choose from, and on one of the chosen options a second profile field input will open allowing the user to add more detail.
I have it all working, but the javascript is clunky. I made a jsFiddle for the code. The problem is that in order to REHIDE the field I am checking each element on change and I think that should be an array but I am not sure how....
http://jsfiddle.net/leefish/qSdUn/
I DON'T want to use jQuery for this, but I am open to Prototype code suggestions Help appreciated.
I have it all working, but the javascript is clunky. I made a jsFiddle for the code. The problem is that in order to REHIDE the field I am checking each element on change and I think that should be an array but I am not sure how....
http://jsfiddle.net/leefish/qSdUn/
I DON'T want to use jQuery for this, but I am open to Prototype code suggestions Help appreciated.