Making textBox readonly
I am using
@(Html.Awe().TextBoxFor(m => m.Price).Numeric().FormatFunc("utils.prefix('$')"))I want to make this readonly or how may I disable this field ??
Sam Mosaic
asked
at 03 Dec 2019
Answers
-
to make it disabled you can set
.Enabled(false)
you can see this demo: https://demo.aspnetawesome.com/Disabled for readonly you can set.ReadonlyInput()
Omuanswered at 04 Dec 2019-
Thanks but I am using version 4.9 , and not getting these options.at 04 Dec 2019 Sam Mosaic
-
you could use jqueryat 04 Dec 2019 Omu
$('#PriceUSD').parent().find('.awe-display').attr('disabled', 'disabled')
-
Thanks ,... it solved my problem.at 04 Dec 2019 Sam Mosaic
-