2 Replies - 1022 Views - Last Post: 26 October 2009 - 10:37 AM

#1 [email protected]  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-October 09

Add Item to Combobox Dynamicaly

Post icon  Posted 26 October 2009 - 05:00 AM

In the given code I want that when i click on Add button a textbox appears & after typing an potion it will add it to the combobox options
<td>News Paper Name<b>:</b></td>
<td><select option="Select ">
<option value="Times of India">Times Of India</option>
<option value="Indian Express">Indian Express</option>
<option value="The Hindu">The Hindu</option>
<option value="outlook">Outlook</option>
<option value="Economic Times">Economic Times</option>
<option value="Financial Express">Financial Express</option>
<option value="Business Line">Business Line</option>
<option value="Hindustan Times">Hindustan Times</option>
<option value="Business Standards">Business Standards</option>
<input type="button" value="Add" onclick="addCombo()">
<tr><td>News Sector<b>:</b></td>
<td><select option="">
<option value="On Government Of India">On Government Of India</option>
<option value="Indian Political System">Indian Political System</option>
<option value="Regulators">Regulators</option>
<option value="Indian Banks, Financial Institutions & Insurance">Indian Banks, Financial Institutions & Insurance</option>
<option value="Core Sectors">Core Sectors</option>
<option value="Infrastructure">Infrastructure</option>
<option value="Other Sectors">Other Sectors</option>
<option value="Small-Medium Enterprises">Small-Medium Enterprises</option>
<option value="Old Industrial Houses & Indian Family">Old Industrial Houses & Indian Family</option>
<option value="Qualities">Qualities</option>
<option value="Large Corporates">Large Corporates</option>
<option value="Media">Media</option>
<option value="Strategic Application">Strategic Application</option>
<option value="Corruption">Corruption</option>
<option value="Indian Economy">Indian Economy</option>
<option value="International Economic & Social Issues">International Economic & Social Issues</option>
<option value="Icolumns By Eminent Personalities">Icolumns By Eminent Personalities</option>
<option value="Editorial">Editorial</option>
<option value="Cartoons">Cartoons</option>
<option value="Caricature">Caricature</option>
<option value="Gossip & Mouth Shooting">Gossip & Mouth Shooting</option>
<option value="Quotes & Sayings">Quotes & Sayings</option>
<option value="Sports">Sports</option></select>
<input type="button" value="Add" onclick="addCombo()">

Is This A Good Question/Topic? 0
  • +

Replies To: Add Item to Combobox Dynamicaly

#2 arthurakay  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 226
  • Joined: 17-February 09

Re: Add Item to Combobox Dynamicaly

Posted 26 October 2009 - 10:34 AM

This is more of a javascript question. Do you have any code written for that "addCombo()" method?

This post has been edited by arthurakay: 26 October 2009 - 10:35 AM

Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Add Item to Combobox Dynamicaly

Posted 26 October 2009 - 10:37 AM

Moved to Javascript (This isn't an HTML or CSS questions since neither can do what you're looking for)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1