razor mvc4如何将jquery函数插入到sql数据库中

时间:2014-02-12 04:52:41

标签: jquery sql asp.net-mvc asp.net-mvc-4 razor

如何将滑块值输入数据库?

我试过传入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>

0 个答案:

没有答案