• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Javascript Null Object Error


Can somebody please help me? I am using a custom form elements script in the link below:


and an error for null object is appearing from this line:

active = option[0].childNodes[0].nodeValue;

I am a novice at Javascript but got this script working perfectly on my local machine - once I loaded it the live site it didn't work... any advice would be greatly appreciated.