Hello!
im processing link click events with mootools. in my html i have a links with the id of this pattern: toggle_NUMBER e.g. toggle_1 now i get the id with this peace of code
var id = $(this.get('id').replace(togglePrefix,emptyPrefix));
my problem starts now: i remove the prefix this way
var togglePrefix = 'toggle_', boxPrefix = 'page_', emptyPrefix = '';
so what should remain is a simple number like 1, 2 or 3. now i tried to increase this number by one
var id_new = parseInt(id)+1;
but this didnt work and i have no clue how to change it! Plz help!