can I do something like this to get the Mode.check value in my view..
<script type="text/javascript">
var check = <%(Model.Check); %>;
$(document).ready(function () {
if(check == "Save")
{
$("#ObnRemove").show();
$("#ObnAdd").val('Save');
}
else
{
$("#ObnRemove").hide();
}
$("#TextEdit").click(function () {
$("#ObnRemove").show();
});
});
</script>
but i am not getting Model.check value?
what I am doign wrong here?
thanks