Afficher un message
Vieux 08/04/2008, 11h41   #1
DanWeaver
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,04244 seconds with 9 queries