html - Radio buttons not changing how javascript selects elements my table? -
problem how use radio buttons control selection behavior jquery ui? right now, can select green boxes (success) intended check out. please note when select orange. my problem if choose check in, cannot select of blue boxes. also, need way "refresh" when change radio buttons green boxes not still selected when want change radio buttons. code (view) i using jquery selectable job done. can read more api documentation found here . tried jquery "filter" based on whether or not radio box checked. clearly, approach failing. edit think approach failing because loading javascript once? when change radio buttons, filter definition not changing. <html> <head> <meta name="viewport" content="width=device-width" /> <title>details</title> <link rel="stylesheet" href="~/css/table.css" /> <script> $(document).ready(function(){ //have condition...