Help needed please. Go easy I’m not that god at explaining things.Code:<!-- Start Sub Acc 1 --> <p>Item Returned</p> <p class="yesno">No</p> <!-- End Sub Acc 1 --> <!-- Start Sub Acc 2 --> <p>Item Returned</p> <p class="yesno">Yes</p> <!-- End Sub Acc 2--> $(function () { if($.trim($('findswithflo.html, .yesno').text()) === "No") { $('findswithflo.html, #floalert').show(); } else { $('findswithflo.html, #floalert').hide(); } });
If one class element contains “No” as the text the “floalert” div is shown and if changed to “Yes” then the “floalert” div is hidden. All ok at this point using one set.
The problem starts as soon as I add a second set using the same element and class containing the opposite yes/no to the first. The “floalert” div is still hidden.
So one is telling “floalert” to hide and the other to show at the same time. I may need to use many elements with the same class for yes/no answers. Help appreciated
Henry


Reply With Quote
Bookmarks