I am “trying” to use BlockUI in a table to have one row blocked out when a user already selected something. I am able to block out all other elements on the page except anything in the table or the table itself. Has anyone else run into this issue or have any suggestions on how to solve?
Share
According to this forum post:
Basically, you could embed your
td‘s content inside anotherdiv, which can be blocked and then callblock()on all of thosedivs instead:HTML:
JavaScript:
I’ve applied a class
rowto eachtd‘s content so that I can callblock()on those elements instead. The selector selects the firsttrstdsdivs with class “row.”Here’s a working example: http://jsfiddle.net/yWwR5/ (The large amount of code up front is just the BlockUI plugin).
You could follow this strategy (as outlined in the forum post) for any element that’s part of the table.
Edit: If you can’t edit the HTML for some reason, you could wrap the contents of each
tdin thedivwith JavaScript: