This to me seemed simple, but it hasn’t worked. Currently all it’s doing is when an option is changed in the drop-down menu, it writes “Stipulations” on another page. I can’t get it to find the correct name from the drop-down and then relay it to match the call names at the placeholder Options. Like I said, it seems simple but it’s frustrating the hell out of me, LoL. Thanks for any help given.
Here is what I want instead of the crap I’ve done so far, LoL:
Where 1st Option is, I need “Stipulations” to appear if “Match” is selected in the drop-down menu.
If either “Angle” or “Interview” is selected, I need “Settings” to appear where 1st Option is.
Where 2nd Option is, I need “Outcome” to appear if “Match” is selected in the drop-down menu.
If either “Angle” or “Interview” is selected, I need “Reason” to appear where 2nd Option is.
Here is what I’ve done:
[java.js]
function getMatch() {
if (!document.write)
return
var reason;
reason = “Stipulations”;
document.write(reason);
}
[dirtsheet2.html – header]
<select name=”select” class=”optional” id=”select” onChange=”getMatch();”>
<option selected>What type of segment?</option>
<option name=”Angle”>Angle</option>
<option name=”Interview”>Interview</option>
<option name=”Match”>Match</option></select>
[dirtsheet2.html – body]
<a name=”stips” id=”stips”>1st Option</a>
<a name=”outcome” id=”outcome”>2nd Option</a>
Here are the files if you want to take a gander and see what my jibberish means, LoL…
[url]http://www.pwfzone.com/jabroni/dirtsheet2.html
[url]http://www.pwfzone.com/jabroni/java.js
I guess I want a specific thing written to the current page realtime. Depending on the option you select, it writes over the option spots on the page with the appropriate text. Please let me know if my rambling does not make any sense and I will try and explain it a little better. If you want to, you can IM me or email me for more quick responses. I would appreciate any help or advice given. As you can probably tell, I am a newbie slowly learning javascript and all I’ve done so far are little one-line scripts.