Link to home
Start Free TrialLog in
Avatar of vidhubala
vidhubala

asked on

visibilty of a div

i have a link and i am using jquery to show a div when the link is clicked.
it doesn't open. pl suggest.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
  <script>
	$("#lin").click(function() {
    alert("open");
    $('#con').css('visibility','visible') ;
	});
  </script>
  <style>
	#con {
		visibility:hidden;
		border:1px solid green;
	}
  </style>
 </HEAD>
 <BODY>
  <a href="#" id="lin">open con</a>
  <div id="con">
	hello world
  </div>
 </BODY>
</HTML>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vidhubala
vidhubala

ASKER

cool. thanks.