Can't seem to resolve this problem here. I need to know if a particular button (a variable actually) exists by going through a prepopulated comma separated list of numeric values. I'm trying to access the properties (e.g. src and value) of an input type image via getElementById using a comma separated string converted into an array. Below is the part of my code:
Forgot to mention (perhaps obvious): as a result of the code each button image (or rsc) should be changed from "btn_a.gif" to "btn_b.gif" if the button name (concatenated adding the variable num) is in the variable r_num (or hidden field "num").
Also just restating (perhaps irrelevant): the hidden field "num" is not prepopulated - it's populated on runtime.