请帮助我根据用户输入生成网格系统。
就像用户输入:
3 3 2 4
然后它将创建这个引导网格:
<div class="row">
<div class="span3">...</div>
<div class="span3">...</div>
<div class="span2">...</div>
<div class="span4">...</div>
</div>
我努力了:
jquery(document).ready( function(){
var userInput = jQuery('.user-input').val();
//now get number separated by space
// generate grid, dont know how to get numbers convert them to span(num)
});