Only works for IE4+ though!

-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 28, 2000 2:04 PM
To: [EMAIL PROTECTED]
Subject: Re: fix size of select item


To fix the size of a select box, you can put in an OPTION tag that consists
of OPTION Value="" >&nbsp;.........</OPTION>  You can then use a JavaScript
event handler for the onLoad event to remove the empty OPTION entry from the
select box.

function handleOnLoad()
{
    // remove the placeholder blank line
    for(i=0;i<document.rfqCreate.selectedSuppliers.options.length;i++)
    {
        if (document.rfqCreate.selectedSuppliers.options[i].value == "")
            document.rfqCreate.selectedSuppliers.options[i] = null;
    }
}

-Richard

                -----Original Message-----
                From: [Your Full Name] [mailto:[EMAIL PROTECTED]]
                Sent: Wednesday, January 26, 2000 8:09 PM
                To: [EMAIL PROTECTED]
                Subject: fix size of select item


                how can i fix the size of list box in html .
                i am populating the list box from database .
                its size changes according to the first option .
                i want to fix the size of selection box.


                -


                Visit http://www.niit.com for eCommerce Solutions.


===========================================================================
                To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff
                JSP-INTEREST".
                FAQs on JSP can be found at:
                 http://java.sun.com/products/jsp/faq.html
                 http://www.esperanto.org.nz/jsp/jspfaq.html


===========================================================================
                To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
                FAQs on JSP can be found at:
                 http://java.sun.com/products/jsp/faq.html
                 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to