Hi,
I would console log the variable nikunj to check if you get any result when getting the current item (before the if statement). Click here to learn more about debugging your code.
I’ve worked on the above code and realized that I needed to use Collapse and expand I/O Show and Hide.
I am now trying to expand or collapse an element based on the value of a text box.
The text box gets the value from the database.