i am working on a form where i have to get value from jquery spinner and add that number of rows to the table inside form but i dont know where is the issue exactly as i fire bug it as well but it do not show me any error.
below is my html
<div class="order-listing">
<table id="my-table">
<tbody>
<tr><td>
<input type="text" name="name" />
<input type="text" name="name" />
<input type="text" name="name" />
<select>
<option value"">abc</option>
<option value"">abc</option>
<option value"">abc</option>
<option value"">abc</option>
</select>
</td></tr>
</tbody>
</table>
</div>
and below is the jquery code for addition of rows
<script>
$(function() {
var spinner = $( "#spinner" ).spinner({ min: 0 });
$( "#ok" ).click(function() {
var spiner_val = spinner.spinner( "value" ) ;
var html = '<tr><td><input type="text" name="name" />'+
'<input type="text" name="name" /><input type="text" name="name" />'+
'<select><option value"">abc</option><option value"">abc</option>'+
'<option value"">abc</option><option value"">abc</option></select></td></tr>';
$('#my-table > tbody > tr').eq(spiner_val).after(html);
});
$( "button" ).button();
});
</script>
below is the spinner and the ok button which trigger this functionality
<p>
<label for="spinner">New Lines Required:</label>
<input id="spinner" name="value" />
<input type="button" value="OK" id="ok" />
</p>