Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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.
Dozy P My attempt at music
Offline
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
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
Dozy P My attempt at music
Offline
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
phiw13 on Codeberg
Offline
Re: form input id
phiw13 (how do you say that :-)
That’s excellent! Just what I needed. Many thanks!
Dozy P My attempt at music
Offline
Pages: 1