Doesn't jQuery's resizable plugin has the snap option? [closed]
The very use开发者_高级运维ful option that jQuery's draggable plugin has!
I think you're talking about jQuery UI. jQuery UI Resizable has the grid
option:
Snaps the resizing element to a grid, every x and y pixels. Array values: [x, y]
Usage example:
$( ".selector" ).resizable({ grid: [50, 50] });
精彩评论