[jQuery] Toggle Div Based on Value
Hi
I'm not sure how to approach this. I want to toggle each div with a
checkbox or hyperlink which shows/hides every div where the RelStatus
value = 'retired'. I'm able to see the value of each RelStatus value
using the code below. The id of each div and the RelStatus value of
each span is set server-side. Thanks
<script type="text/javascript">
$(document).ready(function() {
$('#table1 .RelStatus').each(function() {
alert($(this).text());
});
});
</script>
<div id="<%# Eval("id_individual") %>" class="IndividualDirectors">
<span class="RelStatus" id="RelStatus"><asp:Label
ID="lblRelStatus" Text='<%# Eval("RelStatus") %>' Runat="Server"/></
span><br />
</div>