C#, MVC 5 Razor, jQuery 2.1.1

If this is a duplicate, please point me in the right direction because I can't find it.

The code:

 @Html.LabelFor(model => model.BillState, 
     new { @class = "control-label col-lg-2 col-md-2" })

produces...

<label class="control-label col-lg-2 col-md-2" for="BillState">Province</label>

Note: No ID. No Special class.

So how do I change its text in jQuery in the client on the change of another fields text (ie Country is USA, so change it to 'State')?

Do I need to add an ID attribute to the label so that this is easier, or is there some tricky way to do this without adding IDs?

Related posts

Recent Viewed