Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- How to set clicked Call to Action?


toplisek - 11:55 am on May 30, 2012 (gmt 0)


I have defined button, but how to set clicked button with expanded/collapsed menu items? I like to expand UL and LI items using Jquery? Clicked button should expand menu items and collapse.

<!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" xml:lang="en" lang="en">

<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/
#calltoactionarea .clickarea {
border-radius: 5px 5px 0 0;
}
#calltoactionarea .clickarea {
border-radius: 5px 5px 0 0;
}
.calltoaction {
border-radius: 5px 5px 5px 5px;
color: #000000;
cursor: pointer;
display: inline-block;
position: relative;
text-decoration: none;
}
/*]]>*/
</style>
</head>

<body>
<div class="#calltoactionarea calltoaction clickarea">Basic features</div>
</body>

</html>


Thread source:: http://www.webmasterworld.com/javascript/4459391.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com