<a href="#" name="sample">link 1</a>
<a href="#" name="sample">link 2</a>
Would this be invalid use of the name?
If I wanted to have a function that would be acted upon by detection of the
"name", would this happen if all "name"s in a group were the same?
I know ID can only be used once per document, what about "name"?
If this is invalid, then if I went by a unique ID, such as sample1, sample2,
sampl3, is there a way to eliminate the number on the end to check if the
strings match what I'm looking for?
For those of you familiar with ancient BASIC, we could easily do this by
saying something like A$=left$(b$,6).
Where A$ would return the first 6 characters of b$.
So does JS have an equivelant?