Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » form input id

#1 2005-10-03 20:23:38

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

form input id

Could some kind soul tell me how I can give an id= to form inputs, either instead of class= or in addition.


BB6 Band My band
Gud One My blog

Online

#2 2005-10-03 20:59:40

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: form input id

Do you mean when defining styles (i.e., in the presentation) or something else?

That is, are you trying to specify something like <code><div id=“x”></code> instead of <code><div class=“y”></code>?

Last edited by Elenita (2005-10-03 21:01:13)

Offline

#3 2005-10-03 21:10:05

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: form input id

I mean that when using default txp tags such as txp:comment_email_input, it produces a class but no id. I want the id so I can use ‘label’ on it for styling and for w3c validation


BB6 Band My band
Gud One My blog

Online

#4 2005-10-04 01:59:08

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,255
Website

Re: form input id

> zero wrote:

> I mean that when using default txp tags such as txp:comment_email_input, it produces a class but no id. I want the id so I can use ‘label’ on it for styling and for w3c validation

With TXP 4.01 you cannot do it out of the box. The upcoming TXP 402 will allow this.See this rev.

For TXP 401, you’ll need to modify the comment.php file, See my notes on this.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#5 2005-10-04 18:46:13

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: form input id

phiw13 (how do you say that :-)

That’s excellent! Just what I needed. Many thanks!


BB6 Band My band
Gud One My blog

Online

  1. Index
  2. » Archives
  3. » form input id

Board footer

Powered by FluxBB