In my html, I use Model.Subcontract.company
How can I reference that data in my jQuery?
In my html, I use Model.Subcontract.company
How can I reference that data in my jQuery?
Set the value to an html element and then access it via jquery.
<input type="hidden" value="<%= Model.Subcontract.Company %>" id="hidData" name="hidData" />
$("#hidData").val();
I was able to do it like this:
"<%= Model.Subcontract.company %>"
It's always easier to figure it out after you've given up and asked the question!