Click here to Skip to main content
15,893,594 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Test problem Pin
Mycroft Holmes10-Nov-10 21:00
professionalMycroft Holmes10-Nov-10 21:00 
AnswerRe: Test problem Pin
cjoki12-Nov-10 5:16
cjoki12-Nov-10 5:16 
Questionhow to pass the slected option from a html drop down list to a java script variable?? Pin
krrish chaitanya4-Nov-10 0:20
krrish chaitanya4-Nov-10 0:20 
AnswerRe: how to pass the slected option from a html drop down list to a java script variable?? Pin
Jules VDV4-Nov-10 4:39
Jules VDV4-Nov-10 4:39 
GeneralRe: how to pass the slected option from a html drop down list to a java script variable?? Pin
cjoki4-Nov-10 4:41
cjoki4-Nov-10 4:41 
GeneralRe: how to pass the slected option from a html drop down list to a java script variable?? Pin
Jules VDV4-Nov-10 5:22
Jules VDV4-Nov-10 5:22 
GeneralRe: how to pass the slected option from a html drop down list to a java script variable?? Pin
krrish chaitanya7-Nov-10 17:08
krrish chaitanya7-Nov-10 17:08 
AnswerRe: how to pass the slected option from a html drop down list to a java script variable?? Pin
cjoki4-Nov-10 4:40
cjoki4-Nov-10 4:40 
Your select will need a onchange event to call a javascript function that will test the value of the selected option. If it turns out to be equal to "Others" then you can either, add the need html dynamically or just make it visible by using the css display property.

javascript
function test_selection()
{
   var sel = document.getElementById('dept');
   var val = sel.options[sel.selectedIndex].value;
   if(val=="Others")
   {
       ....you can figure the rest from here.
   }
}


html
<select id="dept" onchange="test_selection();">
                <option value="Dept1">Dept1</option>
                <option value="Dept2">Dept2</option>
                <option value="Dept3">Dept3</option>
                <option value="Others">Others</option>
</select>

GeneralRe: how to pass the slected option from a html drop down list to a java script variable?? Pin
krrish chaitanya7-Nov-10 17:09
krrish chaitanya7-Nov-10 17:09 
QuestionCMS [modified] Pin
Civic062-Nov-10 6:45
Civic062-Nov-10 6:45 
AnswerRe: CMS Pin
Simon_Whale2-Nov-10 7:00
Simon_Whale2-Nov-10 7:00 
AnswerRe: CMS Pin
Jules VDV3-Nov-10 9:10
Jules VDV3-Nov-10 9:10 
QuestionCSS Horizontal Menu Pin
Patrick Skelton2-Nov-10 5:06
Patrick Skelton2-Nov-10 5:06 
AnswerRe: CSS Horizontal Menu Pin
cjoki2-Nov-10 8:22
cjoki2-Nov-10 8:22 
GeneralRe: CSS Horizontal Menu Pin
Patrick Skelton3-Nov-10 9:31
Patrick Skelton3-Nov-10 9:31 
Question500-inernal server error . Pin
Davood Riazi30-Oct-10 22:39
Davood Riazi30-Oct-10 22:39 
AnswerRe: 500-inernal server error . Pin
Dalek Dave31-Oct-10 4:15
professionalDalek Dave31-Oct-10 4:15 
AnswerREPOST Pin
Not Active31-Oct-10 4:27
mentorNot Active31-Oct-10 4:27 
QuestionCSS Selector Problem Pin
Patrick Skelton28-Oct-10 6:00
Patrick Skelton28-Oct-10 6:00 
AnswerRe: CSS Selector Problem Pin
Manfred Rudolf Bihy28-Oct-10 7:04
professionalManfred Rudolf Bihy28-Oct-10 7:04 
GeneralRe: CSS Selector Problem Pin
Patrick Skelton28-Oct-10 8:44
Patrick Skelton28-Oct-10 8:44 
GeneralRe: CSS Selector Problem Pin
Manfred Rudolf Bihy28-Oct-10 11:57
professionalManfred Rudolf Bihy28-Oct-10 11:57 
GeneralRe: CSS Selector Problem Pin
Patrick Skelton28-Oct-10 23:22
Patrick Skelton28-Oct-10 23:22 
GeneralRe: CSS Selector Problem [modified] Pin
Manfred Rudolf Bihy29-Oct-10 1:25
professionalManfred Rudolf Bihy29-Oct-10 1:25 
GeneralRe: CSS Selector Problem Pin
Patrick Skelton2-Nov-10 3:17
Patrick Skelton2-Nov-10 3:17 

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.