/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var classes = $(".item").attr("className").split(" "); for(var i = 0; i < classes.length; i++){ if(classes[i].substr(0,3) == "id-"){ var theId = parseInt(classes[i].split('id-')[1]); } }
URL: http://groups.google.com/group/jquery-en/browse_thread/thread/712929ba52f18775