0

We have implemented BlockUI (element blocking) for a large survey.. On most pages we have a fieldset to be blocked/unblocked based on yes/no answer, and then inside that fieldset paragraph tags that also need to have their own independent block/unblock based on an answer. the problem we are having is when we unblock the fieldset it also affect s the items in the fieldset - but we don't want it to.

SO > Does anyone know how to tell BlockUI not to affect nested item's block/unblock status?


Example
Answer to Question 1 unblocks fieldset, Question 2 in fieldset can be completed, question 2a in fieldset only to be unblocked is question 2 answer was 'yes'

Question 1 - Yes/No (If yes unblock fieldset)

< fieldset >

Question 2 - Yes/No (if yes allow Question 2a, if no Block it)

Question 2a - textarea "Provide more detail"

< /fieldset>

4

1 回答 1

0

嵌套已由开发人员内置到 BlockUI.js 中。

Github 上的线索:https ://github.com/malsup/blockui/issues/40#

于 2012-09-13T14:06:42.867 回答