Jump to content

Recommended Posts

Hello, I guess the topic adequately describes the problem.  I'm just going to go right ahead and include the html, css and js of the elements concerned.  Basically, I can't get the  slideUp() method to bring the #pic_options_div element into view, but show() and fadeIn() work just fine.  What could be the problem?

 

 

html

 



<ul id = "pic_options_panel">

<li  class = "comment_color pic_options">Picture Options

	<ul id = "pic_options_div">

		<li id = "pic_options_collapse"> collapse </li>

		<li align = "center">Make Main Picture</li>

		<li align = "center">Delete This Picture </li>

		<li id = "upload_pic_link" align = "center">Upload New Picture </li>

	</ul>

</li>



<li class = "comment_color pic_comments">Comments</li>


<li class = "clear"> </li>


</ul>


 

 

css

 

#pic_options_panel{z-index:601;margin:auto;padding:0px;position:relative;top:-80px;width:98%;height:30px;border:none;overflow:none;}

.pic_comments{float:left;position:relative;top:0px;left:80px;width:135px;cursor:pointer;}

.pic_options{float:left;position:relative;top:0px;left:40px;width:135px;cursor:pointer}

.pic_options ul{display:none;z-index:650;margin:0px;padding:0px;position:relative;bottom:110px;min-height:0px;width:142px;border:1px solid #ccc}

 

 

js

 

$(document).ready(function() {

$(".pic_options").click(function() {


	$(this).children().slideUp(700);

         });

});

Link to comment
https://forums.phpfreaks.com/topic/262079-slideup-not-working-in-a-drop-down-menu/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.