Get data-id value of textbox on form submit
<p>I have a textbox set-up, like so:</p>

<pre><code>        @Html.TextBoxFor(m =&gt; m.NewVehCode, new {data_id = "" })
</code></pre>

<p>When a user selects a vehicle, the description of the vehicle becomes the value of the textbox and the vehicle code (which is what I want to send to DB) becomes the data-id (not full code but I set the values like this):</p>

<pre><code>        $("#NewVehCode").val(vehDescription);
        $("#NewVehCode").attr("data-id", vehCode);
</code></pre>

<p>This all works fine, except for the fact that when I submit, MVC grabs the value of the textbox. </p>

<p>Is there a way I can on submit, get the data-id of that textbox instead of the value?</p>

<p>Note that I'm not using .js to gather the data. Form calls a controller action that sends the model directly to the controller.</p>