This is a migrated thread and some comments may be shown as answers.

obtaining value from Numeric TextBox not working

0 Answers 110 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Gusev
Top achievements
Rank 1
Gusev asked on 11 May 2013, 07:00 AM
Hello!
ex: I have field in Model
I use this:
<tr>
    <td>
                        @Html.LabelFor(model => model.ThicknessDry)
    </td>
    <td>
                        @Html.EditorFor(model => model.ThicknessDry
    </td>
</tr>

.HtmlAttributes(new { id = Guid.NewGuid().ToString() })
 but I can't  call to my ThicknessDry (thicknessDry.png), because I use new Id ( this need to me)
P.S. I can't delete this code: .HtmlAttributes(new { id = Guid.NewGuid().ToString() }) ( in EditorTemplates)

....later
This code help me!
$("input[name=ThicknessDry]").val();

No answers yet. Maybe you can help?

Tags
NumericTextBox
Asked by
Gusev
Top achievements
Rank 1
Share this question
or