Selecting Elements in the DOM
I am attempting to organize the service offering catalog in a manner that is not alphabetical. Â I've written some custom Javascript that does allow me to order the Divs based off of a class name. Â I have this working correctly on a smaller test environment but when I moved it over to the self service portal it seems that i am unable to select the items using the document.getElementsByClassName('cat') selector. Â I have successfully selected other elements in the DOM for some custom css work that I needed so i believe I am targeting the right elements. Â I know the script is connecting to the page, i've run a .length on what should be the returned node list and it returns 0.
Does anyone have any thoughts on what the malfunction is. Â Any help would be greatly appreciated.
Jarrett
1 reply