Javascript Elements Selector

goaliebob99

New Member
I am creating a Javascript Selector so that it will facilitate the manipulation of those elements in another methods.My function is being called this way:\[code\]// Selecting three groups of elements in context 'document'myFunc(["p", "div#id", "ul li"], document);\[/code\]My function, so far, populates an array representing the elements to be selected:\[code\]// Representation corresponding to the selection abovematches[0] = [["p"]]matches[1] = [["div", "#id"]]matches[2] = [["ul"], ["li"]]\[/code\]Although I tried, I can't get any of these elements but the simplest: \[code\]"p"\[/code\].Any tips or help?
 
Back
Top