A referenced JS component, jcombo 0.9

Source: Internet
Author: User
Reference: lifecycle 0.9

I wrote a JS component by myself. jcombo 0.9 welcomes testing. You are also welcome to develop it together and send an email to me.
The SVN address is:

Http://svn.chinasvn.com: 82/jselect.

I will mail you the account and password
/Files/eicesoft/jcombo.zip

Test page Code : <! Doctype HTML public "-// W3C // dtd html 4.01 // en" "http://www.w3.org/TR/html4/strict.dtd" >
< Html >
< Head >
< Meta HTTP-equiv = "Content-Type" Content = "Text/html; charset = gb2312"   />
< Title > Test </ Title >
< Link Href = "Combo.css" REL = "Stylesheet"   />
< Script Language = "JavaScript" SRC = "Combo. js" >
</ Script >
</ Head >
< Body >

< Script Language = Javascript >
VaR CO =   New Combo ( " Cbo1 " , " Project: " );
CO. additem ( " First test project " , " 1 " , " Images/xpfolder.gif " );
CO. additem ( " The second test item " , " 2 " , " Images/xpfolder.gif " );
CO. additem ( " Third test item " , " 3 " , " Images/xpfolder.gif " );
CO. additem ( " Fourth test item " , " 4 " , " Images/xpfolder.gif " );
CO. INIT ();
</ Script >
< BR />
< Script Language = Javascript >
VaR CO2 =   New Combo ( " Cbo2 " , " Project 2: " );
Co2.additem ( " First test project " , " 1 " , "" );
Co2.additem ( " The second test item " , " 2 " , "" );
Co2.additem ( " Third test item " , " 3 " , "" );
Co2.additem ( " 4th test items " , " 4 " , "" );
Co2.init ();
</ Script >
< Input Type = "Button" Value = "Project selection item value" Onclick = "Javascript: Alert (Co. Value );"   /> < BR />
< Input Type = "Button" Value = "Project selection item value" Onclick = "Javascript: Alert ($ ('cbo1'). Value );"   /> < BR />
</ Body >
</ Html >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.