Your description doesn't say what you want to click on; what should trigger what; or how you want to treat inactive members etc. So...I'll embellished a bit on the functionality.
What you do really depends on how much control you have on the HTML in question. But there's no way to really determine that from your explanation. However, if you want to affect all classes that START WITH "active" then use this my examples event-definition: $('div[class^="active"]')
In the meantime, let's pretend you HAVE some control on the HTML in question.
Here is some food for thought
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<script src="Includes/JavaScript/jQuery/version1.4.4/Core/jquery-1.4.4.js" type="text/javascript"></script>
<style type="text/css">
.list li
{
cursor: pointer;
}
.active
{
color: Green;
}
.inactive
{
color: grey;
}
</style>
<script type="text/javascript">
///<summary>Removes an active row.</summary>
function deactivate() {
$(this).parent().remove();
}
///<summary>Change an inactive row to an active row.</summary>
function activate() {
$(this).removeClass('inactive').addClass('active').click(deactivate);
}
$(document).ready(function() {
// Also, just as an extra, use "context" to limit the scope of any jQuery selector-search.
// That way on large pages your selector doesn't search through the whole page,
// it only searches the tables HTML.
// Doing so is a short-cut for: $('#tblMyTable').find('tr.clickTrigger');
var context = $('ul.list');
$('div.inactive', context).click(activate);
$('div.active', context).click(deactivate);
});
</script>
</head>
<body>
<form id="form1" runat="server">
<ul class="list">
<li>
<div class="pack1 active">
<span>$3.99</span>
</div>
</li>
<li>
<div class="pack2 inactive">
<span>$5.99</span>
</div>
</li>
<li>
<div class="pack3 active">
<div id="ribbon">
<span>40</span> @ <span>$6.99</span>
</div>
</div>
</li>
<li>
<div class="pack4 inactive">
<span>$10.99</span>
</div>
</li>
<li>
<div class="pack5 inactive">
<span>$259.99</span>
</div>
</li>
</ul>
</form>
</body>
</html>