$(document).ready(function() { $("div#box .boxPic").mouseover(function() { $(this).css("opacity", "0.5"); }); $("div#box .boxPic").mouseleave(function() { $(this).css("opacity", "1.0"); }); }); $(document).ready(function() { $("#sessionselector").change(function() { $('.session').hide(); $('.' + $(this).val()).show(); }); }); // $(document).ready(function() // { // // alert('worked'); // function choose(str) // { // alert('worked'); // if (str == "") // { // document.getElementById("txtHint").innerHTML = ""; // return; // } // else // { // var xmlhttp = new XMLHttpRequest(); // xmlhttp.onreadystatechange = function() // { // if (this.readyState == 4 && this.status == 200) // { // document.getElementById("txtHint").innerHTML = this.responseText; // } // }; // xmlhttp.open("GET","fetchaudio.php?q="+str,true); // xmlhttp.send(); // } // } // });