Need unique ids using include file
I have several sets of controls that are repeated. I am trying to use
include files to to the job so as to have my 'tablet' html in one
place.
<div id="0" class="tablet">
<!-- #include virtual ="tablet.inc" -->
</div>
<div id="1" class="tablet">
<!-- #include virtual ="tablet.inc" -->
</div>
<div id="2" class="tablet">
<!-- #include virtual ="tablet.inc" -->
</div>
I would like the id of each control in the repeated include file to be
unique- it doesnt matter what it is called but it must be unique to
the page.
tablet.inc has elements such as:
<input id="blah" name="blahname"
onkeyup="somejavascriptfunction(this)" />
which I need to be eg id="blah1" in the first div and id="blah2" in
the second or anything along those lines.
Any pointers on this much appreciated.
Dan
|