In this thread http://www.chronoengine.com/forums/posts/f5/t99923/how-to-set-end-count-in-multiplier-container.html?hilit=multiplier+button (locked) Bob answered with an example of js code.
Bob added:
I had already wrote a similar code but the problem is that when you get to the limit you hide the add button and there's no way to show it again.
I tried to add an event handler linked to the remove button (.multiplier-remove-button) but it doesn't fire. I suppose the problem is that the button is destroyed before my handler runs.
Can somebody or Bob :-) explain to me how he could manage to make his code work?
Thank you
maxx
Bob added:
Note that this allows for the fact that some lines may be deleted and new ones added.
I had already wrote a similar code but the problem is that when you get to the limit you hide the add button and there's no way to show it again.
I tried to add an event handler linked to the remove button (.multiplier-remove-button) but it doesn't fire. I suppose the problem is that the button is destroyed before my handler runs.
Can somebody or Bob :-) explain to me how he could manage to make his code work?
Thank you
maxx