2020 Jan 14 10:38 AM
Hi all I have
the element like this :
DATA[*].MATERIAL
and I want to hide the element
DATA[*].INV_ITM_PRICE
when the material is empty.
How do I do it using javascript?
I also named the element material and added the following code:
if($.material == null )
{
this.presence = "hidden";
}
does not work .
How do I solve this?
Hi all I have
the element like this :
DATA[*].MATERIAL
and I want to hide the element
DATA[*].INV_ITM_PRICE
when the material is empty.
How do I do it using javascript?
I also named the element material and added the following code:
if($.material == null )
{
this.presence = "hidden";
}
does not work .
How do I solve this?
2020 Jan 14 2:32 PM
2020 Jan 14 2:50 PM
I guess you need to check the value and your code will be correct.
Hide the element and shift lower elements up
if($.material.value == null)
{
this.presence ="hidden";
}
Hiding only the TEXT INSIDE the element NOT the element itself ,no shifting of other elements
if($.material.value == null)
{
this.presence = "invisible";
}
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |