I have a click function that grabs the #id of a DIV
all the DIV’s have id’s like this:
bar01
bar02
bar03
bar04
I just need the 01, 02, 03…
So i need to remove the ‘bar’ from the #id to pass it into my function
$(".day div").click(function(){
var idNum = $(this).attr("id");
LoadTopTenBar(idNum);
});
the remove(), doesn’t seem to be what i’m looking for.
1 Answer