RealBlackStuff
Posts: 6,450 +3
Hello Javascript Gurus,
Is there a way to put the following HTML-coding into a Javascript file? (something.JS)
<SELECT NAME="Surname" CLASS="quoteform"><br>
<option selected>Select Surname
<option>Connolly
<option>Gallagher
<option>O'Brien
etc.
</select>
I have a webpage with photos of Family Crests and crested paraphernalia, each of which is only available in the (selectable) Surnames.
Crested items are available in different groups of names. Rather than having the same SELECT code under each photo, I would prefer to call up a Javascript, in which I can stick the complete selection.
Any sample-scripts greatly appreciated.
I searched the WWW intensively, but no samples found.
Is there a way to put the following HTML-coding into a Javascript file? (something.JS)
<SELECT NAME="Surname" CLASS="quoteform"><br>
<option selected>Select Surname
<option>Connolly
<option>Gallagher
<option>O'Brien
etc.
</select>
I have a webpage with photos of Family Crests and crested paraphernalia, each of which is only available in the (selectable) Surnames.
Crested items are available in different groups of names. Rather than having the same SELECT code under each photo, I would prefer to call up a Javascript, in which I can stick the complete selection.
Any sample-scripts greatly appreciated.
I searched the WWW intensively, but no samples found.