Trying to change to uppercase values in input fields populated by json

I have some code shown below that populates a few text fields but the data is mixed case and I need to change it to uppercase. Any idea how I could do it given below?

$( "#getvin" ).click(function() {
$.post("trades/vin_decode/",{ vin: $('input[name="vin"]').val() },
$('input[name="model"]').val(data.styleHolder[0].modelName +" "+ data.styleHolder[0].categories["Vehicle Style"]);
$('input[name="engine"]').val(data.styleHolder[0].engineSize + " Litre - " + data.styleHolder[0].engineCylinder +" Cylinder Engine");

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Just add .toUpperCase();

tjyoungAuthor Commented:
I tried and got this for example:

TypeError: $("input[name=\"make\"]").val(data.styleHolder[0].makeName).toUpperCase is not a function
[Break On This Error]       

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Ok, try this


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Here is a sample I threw together.,js,output

x='lower case';


Open in new window

  <input type="text">

Open in new window

tjyoungAuthor Commented:
Awesome. That nailed it. Thanks for taking the time!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.