如何将滑块值输入数据库?
我试过传入id,但它不起作用,任何人都可以帮忙吗?谢谢!
<script>
$( function ()
{
$( "#slider-range" ).slider( {
orientation: "vertical",
range: true,
values: [17, 67],
slide: function ( event, ui )
{
$( "#amount" ).val( + ui.values[0] + "by" + ui.values[1] );
}
} );
$( "#amount" ).val( "" + $( "#slider-range" ).slider( "values", 0 ) +
" by " + $( "#slider-range" ).slider( "values", 1 ) );
} );
<input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;">
@Html.TextAreaFor(model => model.PuzzleDimension, new { id = "amount" } )
</p>