People are missing that content, so we want to do it with a
Code: Select all
onclick=\"javascript:return confirm('........');So while <div id='other'></div> appears if they choose 'Other', can I make the text in the pop different depending on what option they choose from that dropdown?
So from:
<select name='test'>
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<select>
If they choose option 2, I want "one set of text to appear in the Confirm popup", but if option 3 is chosen, I want "different set of text to appear".
It's using this Javascript to run the <div> appearance:
Code: Select all
function optionCheck(){
var option = document.getElementById("options").value;
if(option == "PLEASE PAINT"){
document.getElementById("1").style.display ="inline";
document.getElementById("2").style.display ="none";
document.getElementById("3").style.display ="none";
}
if(option == "UKARA"){
document.getElementById("1").style.display ="none";
document.getElementById("2").style.display ="none";
document.getElementById("3").style.display ="none";
}
if(option == "OTHER"){
document.getElementById("1").style.display ="none";
document.getElementById("2").style.display ="none";
document.getElementById("3").style.display ="inline";
}
}