I have a Radio group and depending on the value selected, I want a specific region to appear and make 2 other regions disappear.(我有一个“广播”组,根据所选的值,我希望出现一个特定区域并使其他两个区域消失。)
However when I hide the regions, the region that is visible doesn't take all the space available which leaves an empty space.(但是,当我隐藏区域时,可见区域并不会占用所有可用空间,因此会留下一个空白空间。)
Like this(像这样)
I was using the $x_Hide('ItemID')
method like a website suggested but it doesn't collapse the space like the page claimed.(我正在像网站建议的那样使用$x_Hide('ItemID')
方法,但它不会像声明的页面那样折叠空间。)
I've noticed that the x_Hide
doesn't actually remove the div
where the region was.(我注意到x_Hide
实际上并未删除区域所在的div
。)
The div
is still present and its content is too.(div
仍然存在,其内容也是如此。)
I then tried the $x("ItemID").remove()
function but this time the div was still there but its content was missing.(然后,我尝试了$x("ItemID").remove()
函数,但是这次div仍然存在,但是其内容丢失了。)
Is there a way to make it so that the remaining region takes all the available space?(有没有一种方法可以使其余区域占用所有可用空间?)
ask by Hastaroth translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…