문제

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>

도움이 되었습니까?

해결책

Nesting has been built into BlockUI.js by the developer..

Trail on Github: https://github.com/malsup/blockui/issues/40#

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top