I'm trying to get some div boxes to be inserted at specific positions. Here's my first attempt:
$('[class*=order-]').each(function() {
/* 1. Store info */
var orderClass = $(this);
console.log(orderClass);
/* 2. Find the insert number */
var orderClassResults = orderClass.match('order-');
console.log(orderClassResults);
/* 3. Use the insert number to reposition */
});
I'm stuck on step #2 of just extracting the number to be used for positioning. Am I using match() correctly to find the 'order-' class name?
Here's a working example: http://play.meyouand.us/140418-rearrange/rearrange1.html