On success event I want to set d - none to particular item e.g form in order to hide it. I used to utilise variable and toggle class based on variable value but am looking for alternative and easier way to achieve it, just like I can hide dynamic alert on success event.
Using variables for this case is just fine.
However you can try checking the server action status and add the
d-none class there. So you want to check for status 200, which means OK (server connect executed successfully).
Neat! Thanks much!