Click here to Skip to main content
15,880,364 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCreating a sweepstakes popup / storing emails in DB Pin
therick01451-Feb-07 10:58
therick01451-Feb-07 10:58 
AnswerRe: Creating a sweepstakes popup / storing emails in DB Pin
therick01451-Feb-07 11:01
therick01451-Feb-07 11:01 
AnswerRe: Creating a sweepstakes popup / storing emails in DB Pin
Christian Graus1-Feb-07 11:18
protectorChristian Graus1-Feb-07 11:18 
GeneralRe: Creating a sweepstakes popup / storing emails in DB Pin
Bradml1-Feb-07 22:22
Bradml1-Feb-07 22:22 
GeneralRe: Creating a sweepstakes popup / storing emails in DB Pin
therick01452-Feb-07 6:51
therick01452-Feb-07 6:51 
GeneralRe: Creating a sweepstakes popup / storing emails in DB Pin
Bradml2-Feb-07 10:54
Bradml2-Feb-07 10:54 
Questiononchange with select tags Pin
spinanicky1-Feb-07 8:46
spinanicky1-Feb-07 8:46 
AnswerRe: onchange with select tags Pin
Rojan Gh.1-Feb-07 12:50
professionalRojan Gh.1-Feb-07 12:50 
You should use this code:
<br />
//Remove all option tags of the select object<br />
document.getElementById("Select").options.length=0;<br />
//Add a new option tag to the index of 'i'<br />
document.getElementById("Select").options[i] = new Option(i,i,false,false);<br />
//The syntax is: new Option(text, value, defaultSelected, selected)<br />

You can find a complete reference here(use document.getElementById instead of targeting the objects directly like document.myform.master.options[0]=new Option("Sports", "sportsvalue", true, false)):
http://www.javascriptkit.com/javatutors/selectcontent.shtml[^]
and some more information here(it is like what you want to do):
http://www.javascriptkit.com/javatutors/selectcontent2.shtml[^]

Sojaner!

Questionvisual studio 2005 issue Pin
Shaimmaa1-Feb-07 6:02
Shaimmaa1-Feb-07 6:02 
AnswerRe: visual studio 2005 issue Pin
Christian Graus1-Feb-07 9:43
protectorChristian Graus1-Feb-07 9:43 
QuestionCMMI Pin
Member 37855611-Feb-07 5:48
Member 37855611-Feb-07 5:48 
QuestionWeb service issues Pin
Parmenio1-Feb-07 2:09
Parmenio1-Feb-07 2:09 
AnswerRe: Web service issues Pin
parsiphal1-Feb-07 3:46
parsiphal1-Feb-07 3:46 
QuestionJavascript Copy Text Pin
tech_freak1-Feb-07 1:49
tech_freak1-Feb-07 1:49 
AnswerRe: Javascript Copy Text Pin
Vasudevan Deepak Kumar1-Feb-07 3:52
Vasudevan Deepak Kumar1-Feb-07 3:52 
AnswerRe: Javascript Copy Text Pin
David Domingues1-Feb-07 5:44
David Domingues1-Feb-07 5:44 
Questionddl with grid Pin
praveenanand31-Jan-07 20:00
praveenanand31-Jan-07 20:00 
AnswerRe: ddl with grid Pin
badgrs31-Jan-07 22:44
badgrs31-Jan-07 22:44 
QuestionAdd elements from one ListBox to another Pin
varshavmane31-Jan-07 18:09
varshavmane31-Jan-07 18:09 
AnswerRe: Add elements from one ListBox to another Pin
Sachin Pimpale31-Jan-07 19:03
Sachin Pimpale31-Jan-07 19:03 
GeneralRe: Add elements from one ListBox to another Pin
varshavmane31-Jan-07 19:58
varshavmane31-Jan-07 19:58 
Questiondesign and control media player Pin
gigo2k631-Jan-07 11:18
gigo2k631-Jan-07 11:18 
AnswerRe: design and control media player Pin
Bradml31-Jan-07 13:23
Bradml31-Jan-07 13:23 
AnswerRe: design and control media player Pin
Vasudevan Deepak Kumar1-Feb-07 3:53
Vasudevan Deepak Kumar1-Feb-07 3:53 
Questiondropdown menu with javascript Pin
MayyMagdy31-Jan-07 2:46
MayyMagdy31-Jan-07 2:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.