I put a json array into a listitem.
The interface is like this
Then I want to hide the button.
But it's not effective.
How to hide a button which is in a listitem?
Hi Crystal,
If you want to hide the button, on which you clicked, use this code:
precode
$(this).hide();
/code/pre
If you want to hide the whole grid component, inside which this button is, then this:
precode
$(this).parents("[name=gridName]").hide();
/code/pre
where 'gridName' - is the name of your grid component.
Hi,
Sorry, not sure we understand. Are these components in a Grid?
Use the above code (for grid).
Hello Crystal,
If you want to hide a whole grid you can use this code:
code $("[name='mobilegrid_4']").hide();
where mobilegrid_4 name of your grid /code