now that I have a bit more understanding of jQuery, I was able to do a couple searches and think I'm close:
http://docs.jquery.com/UI/Effects/BlindI think I need this and I've set the direction to vertical and the mode to ".show" but it's not working. Switched to a checkbox in my html and used the jQuery event handler ".click"
Here's what it looks like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MusicBrainz!</title>
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
<script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.core.js"></script>
<script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.blind.js"></script>
<link href="main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function(){
$("#advanced").click(function () {
$("#the_div").show("blind", { direction: "vertical" }, 1000);
});
});
</script>
<style type="text/css">
#the_div {
height: 0px;
width: 0px;
overflow: hidden;
}
</style
</head>
<body>
<div id="the_div"></div>
<label>
<input type="checkbox" id="advanced" /></label>
<label>Advanced Search Options</label>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>MusicBrainz!</title>
-
- <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
- <script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.core.js"></script>
- <script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.blind.js"></script>
- <link href="main.css" rel="stylesheet" type="text/css" />
-
- <script type="text/javascript">
- $(document).ready(function(){
-
- $("#advanced").click(function () {
- $("#the_div").show("blind", { direction: "vertical" }, 1000);
- });
-
- });
- </script>
-
- <style type="text/css">
- #the_div {
- height: 0px;
- width: 0px;
- overflow: hidden;
- }
- </style
-
- </head>
-
- <body>
-
- <div id="the_div"></div>
- <label>
- <input type="checkbox" id="advanced" /></label>
- <label>Advanced Search Options</label>
-
I'm close...I can feel it. What have I done wrong here?
Edit: Just saw your post on adding display:none; I guess we were posting at the same time. This worked...sorta, but I'm almost positive I can fix the rest, seems like an html/css issue now. Thanks again for the incredible amount of help you've given, have a good night.
Use your words like arrows to shoot toward your goal.