[jQuery] this.hide() not a function?
The following code gives the error "this.hide() is not a function". I
am a newbie and I thought "this" referred to the selected dom. So I do
not understand why I can not call hide? Using $
("#returnToMainMenu).hide(); works just fine.
<script type="text/javascript">
$(document).ready(function(){
$("#MainIFrame").attr('src',"http://www.marymonte.com");
$("#returnToMainMenu").hide();
$("#rfidMenu").click(function(){
$("#MainIFrame").attr('src',"http://www.marymonte.com/RFID.html");
$("#returnToMainMenu").show()});
$("#returnToMainMenu").click(function(){
this.hide();
$("#MainIFrame").attr('src',"http://
www.marymonte.com")});
});
</script>
TIA,
John