I have the following code:
$('#smallcart .plusone').live('click',function(){ var id = $(this).attr('id'); articlenr = id.split('_')[1]; });
this works fine in FF, Safari, Chrome, however in IE (7 and 8) it throws an error for the split function (this property or method is not supported by this object).
if I warn 'id'-variable, I get something like plus_5751 . (so I want to get the "5751" part) if I do alert(typeof(id)) , I get String as the response ...
Can someone please point me to the correct answer?
thanks
source share