Fernando Jimenez
Fernando Jimenez
Pro Student 5,760 Points

Simple wage Calculator, jquery not returning value? whats wrong?

So for now my goal is to set the value of annualIncome to be whatever its on the value of #anualtype which is an <input> tag. So i just want to console.log the value to make sure its working... Can someone help pointing out what i am doing wrong?

$( document ).ready(function() {

      let annualIncome = this.val();


    const ferderalIncome = (5.17)/100;
    const socialSecurity = (6.20)/100;
    const medicare = (1.45)/100;
    const utahStateIncome = (4.60)/100;


1 Answer

Hi, check out the name inside your console.log(). It should be the same value as before. Look at the way you wrote it.

chears - phil