如何使Checkbox成为禁用,并将该值传递给mvc4和Jtable中的数据库? [英] How to make Checkbox as disabled and that value pass to database in mvc4 and Jtable?
本文介绍了如何使Checkbox成为禁用,并将该值传递给mvc4和Jtable中的数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何传递在MVC4中使用Jquery禁用的Checkbox值。
我希望在禁用模式时传递True / False值。
我试过通过使用下面的jquery但是没有将值传递给传递Null值的数据库
$('#Edit- IsETATech')。prop('禁用',true);
IsETATech是车型中的物业。
具有NULL值。
如果我维护Attr然后传递值但是没有禁用。
How to pass the Checkbox value which is disabled by using Jquery in MVC4.
I want to pass the True/False value while that is disabled mode.
I have tried by usning the below jquery but that is not passing value to Database that is passing Null value
$('#Edit-IsETATech').prop('disabled', true);
IsETATech is Property in model.
That has the NULL value.
If i maintain Attr then is passing value but that is not Disabled.
推荐答案
('#Edit-IsETATech')。prop('disabled',true);
IsETATech是模型中的财产。
具有NULL值。
如果我维护Attr然后传递值但是没有禁用。
('#Edit-IsETATech').prop('disabled', true);
IsETATech is Property in model.
That has the NULL value.
If i maintain Attr then is passing value but that is not Disabled.
这篇关于如何使Checkbox成为禁用,并将该值传递给mvc4和Jtable中的数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文