Login | Iscriviti | FAQ
Anonymous

Button to use as input in a form

+ Rispondi al messaggio

2 messaggi Pagina 1 di 1


Button to use as input in a form

da Catriona » gio feb 07, 2013 11:49 am

Hi, I have tried to search for my solution myself without success. I have created a button function but unformatted the button so that you only see the text. I want to use it to populate a text field in an order form, I want the text to be the same as the label on the button.

Would you know I do this? Here's a sample of the code. I have thought of creating an array and index.

div id="vb">
<button class="link" style="color:#9f1d35;font-family:Tempus Sans ITC;font-size:20px;">Vivid Burgundy</button>
</div>
Avatar utente

Catriona

  • Messaggi: 13
  • Iscritto il: mer nov 07, 2012 10:56 am

Re: Button to use as input in a form

da Catriona » dom feb 10, 2013 8:29 pm

Hi I have not got a form as yet. Just an idea I'm trying

For e.g.

It will be an order form, the idea is

Choose a colour, as below, these are at the moment in <p> form. I would like the to be able to click on the color names and the name of the colour appear in a text box.

Color
Red
Pink
Blue

Chosen color - textbox -(populated by choosen colour)

thanks

Cat
Avatar utente

Catriona

  • Messaggi: 13
  • Iscritto il: mer nov 07, 2012 10:56 am


+ Rispondi al messaggio

Pagina 1 di 1