locked
Razor @Html.TextAreaFor not displaying Placeholder Information / text RRS feed

  • Question

  • User2130491911 posted

    Hi All,

    I am trying to get a place holder to display in this textarea box and it just wont go.

    All my other EditorFor fields show their place holders just fine so I doubt there is an issue with the browser. 

    I even pulled in a textarea.for box from one of my other programs and it does not work in  the current program.

    I deleted the browsing information out of the browser and it's still a no go,

    Any Ideas?

    Pulled this in from my existing Application as a test and it does not display in the new Application 

                            @*@Html.TextAreaFor(model => model.FOPS, 10, 20, new { htmlAttributes = new { @class = "form-control", @placeholder = "Enter Flight NAV Sequence", @style = "resize: none; width: 100%;" } })*@
                            @Html.TextAreaFor(model => model.FOPS, 10, 47, new { htmlAttributes = new { @placeholder = "Enter Flight Sequence"} })

    So other examples I tried as well as the stuff around it 

                    @*TOPIC DESCRIPTION*@
                    <div class="row" style="margin-top:5px">
                        @*ROW ABOVE ADJUSTMENT*@
    
                        <div class="col-sm-12">
                            @*@Html.LabelFor(model => model.TOPIC_SUMMARY, htmlAttributes: new { @class = "control-label col-sm-12" })*@
                            @*@Html.TextAreaFor(model => model.CONTACT_ORG_NAME, 10, 47, new { htmlAttributes = new { @class = "form-control_Address", @placeholder = "Enter Info", @style = "resize: none; width: 100%;" } })*@
                           
    @Html.TextAreaFor(model => model.CONTACT_ORG_NAME, 10, 47, new { htmlAttributes = new { @placeholder = "Enter Info"} }) @Html.ValidationMessageFor(model => model.CONTACT_ORG_NAME, "", new { @class = "text-danger" }) </div> </div> @*ROW 2 END DIV COL 1*@

    Wednesday, February 19, 2020 8:39 PM

Answers

All replies