javascript - submit disabled dropdown mvc c# -


i want submit dropdown value disabled:

view:

@html.dropdownfor(model => model.type_id, model.typedropdown) @html.hiddenfor(m => m.type_id) 

javascript:

$("#type_id").val("67").change(); document.getelementbyid("type_id").disabled = true; $('#type_id').val(67); 

but value dont passed c# controller.

once disable dropdown wont submit it's value, need store value.

see : disable dropdown

use hiddenfor nameparameter store value.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -