Jump to content

jQuery slide down div


Vitamin

Recommended Posts

I have a div that when clicked will slide down.  Once it is expanded there are a couple comboboxs that can be chosen.

 

I run into a problem tho, I want the user to be able to slide the div back up when they are done choosing their values in the combo box, but once you click anywhere in the div (including the combo box) the div slides back to the default place.  What is the best way to approach this so that values can be chosen from the combo boxes without it sliding back up?  Ill post the jQuery script that controls the 2 div's.

 

$('div#runes').click(function () {
if ($('#showrunes').is(':hidden')) {
	$('div#showrunes').slideDown('slow');
} else {			
	$('div#showrunes').slideUp();
}
});

Link to comment
https://forums.phpfreaks.com/topic/265593-jquery-slide-down-div/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.