Hi folks.

I need some code done for this problem.

Instead of;

element would be; DM016A_RF_LIMS

element=formName.LIMIT_lb.options[i].text
compare=element.substr(0,5);

I need;

element=formName.LIMIT_lb.options[i].text
compare=element (string up until the first underscore, NOT THE 1st FIVE CHARACTERS as above)

?

Cheers