HighDots Forums  

Select multiple has extra field

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Select multiple has extra field in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim B2
 
Posts: n/a

Default Select multiple has extra field - 07-01-2005 , 05:31 PM






This leaves an extra input field left of the first checkbox and below the "List
Name Here" text. When I enter characters, nothing happens. A little doted line
or box appears. Otherwise it looks ok.

Here is the code

<TD>
<b>List Name Here</b><br>
<select multiple size="5">
<INPUT TYPE=CHECKBOX NAME="apples">apples<BR>
<INPUT TYPE=CHECKBOX NAME="greenpeppers">green peppers<BR>

<INPUT TYPE=CHECKBOX NAME="cantalope">cantalope<br>

</select>
</td>

so how to get rid of the extra imput box that appears?




Reply With Quote
  #2  
Old   
Alan
 
Posts: n/a

Default Re: Select multiple has extra field - 07-01-2005 , 06:00 PM








<select multiple size="5">
<INPUT TYPE=CHECKBOX NAME="apples">

What is it you are trying to do???

The above is nonsense code. <input> does not go within the <select> tag.

<option> is what goes within the select tag.


Do you want three checkboxes, and people can choose none/one/two/three of
them?

then JUST use the checkbox code without the select tags.
<INPUT TYPE=CHECKBOX

Or- if you want them to only be able to pick one of the three, use radio
buttons, and give all three radio buttons the same name and id


Reply With Quote
  #3  
Old   
Gary White
 
Posts: n/a

Default Re: Select multiple has extra field - 07-01-2005 , 07:23 PM



"Jim B2" <webforumsuser (AT) macromedia (DOT) com> wrote


Quote:
select multiple size="5"
INPUT TYPE=CHECKBOX NAME="apples">apples<BR
INPUT TYPE=CHECKBOX NAME="greenpeppers">green peppers<BR
INPUT TYPE=CHECKBOX NAME="cantalope">cantalope<br
/select

What is it you're trying to do? The only thing you can put between <select>
and </select> are <option> and <optgroup>. Checkboxes can't go in a
<select>.

Gary




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.