So I have something like this:
<button id="select-settings-<var2 CardID>-{substrCardNumb(<var2 CardAccID>)}">
The function just returns the last digits of the given variable.
Obviously this doesn't work, but what im trying to do is dynamically generate an ID for different cards. The var2-s come from the server and currently I'm getting the full length for cardAccID, but I only want the last 4 digits to be in the ID of the html element.
How do I insert inline javascript functions into an id?