1st new to this list. please pardon any faux pas....
this is the html... (Q1..not sure of syntax for selected option but this seems to work...)
<select>
<option class=" " value="choose" selected="yes" SELECTED>choose language</option>
<option class=" turnoffbuttonenglish" value="japanese" >日本語 </option>
<option class=" turnoffbuttonjapanese" value="english" >English </option>
<option class="turnonboth" value="both" >both </option>
</select>
each option chooses which language to display in the page and an iframe.
here is the jquery that seems not to be working (I think the problem is here and not elsewhere in my code...)
there are analogous sections of code for the three options. but below is the exammple for class turnoffbuttonjapanese. (name is legacy, it really shows english..class hidden displays none...
$('.turnoffbuttonjapanese').click( function() {
$currentLanguage ="2"
$('.japanese').addClass("hidden");
$('.english').removeClass("hidden");
$currentIFrame.contents().find(".japanese").each(function(index, item) {
$(item).addClass("hidden");
});
$currentIFrame.contents().find(".english").each(function(index, item) {
$(item).removeClass("hidden");
});
});
This seems to work in opera, but not in explorer!!??? when I select nothing happens.
If instead I have
<div class=" english hidden turnoffbuttonenglish"> <a
class=" turnoffenglish" title="see 日本語 page">日本語 <img
src="images/chopsticks150.png" height="100%" alt="chopsticks"> </a></div>
<div class=" japanese turnoffbuttonjapanese"><a
class=" turnoffjapanese" title="see ENGLISH page">English <img
src="images/knifeandfork150.png" height="100%" alt="knife and fork"></a> </div>
this works...???