I have a report with 4 checkboxes that changes what the report displays. There is also a search feature so the user can search for certain companies. But depending on what checkbox is checked, only certain search options in the dropdownlist need to be displayed.
<asp:DropDownList runat="server" ID="ddlSearchBy">
<asp:ListItem Text="All Job Owners" Value="null" ></asp:ListItem>
<asp:ListItem Text="Job Owner" Value="Customer" ></asp:ListItem>
<asp:ListItem Text="Col Member" Value="Col Member" ></asp:ListItem>
<asp:ListItem Text="Del Member" Value="Del Member" ></asp:ListItem>
</asp:DropDownList>
So depending on which checkbox is selected I only want certain ListItems shown.
$(document).ready(function() {
$('#rbNormal').change(function() {
if($(this).is(":checked")) {
//hide third listitem
}
});
$('#rbDailyReport').change(function () {
if ($(this).is(":checked")) {
//hide third and forth listitem
}
});
});
Aucun commentaire:
Enregistrer un commentaire