Empty input text value

Empty input text value

Good day!

I'm here...

anyone can help me about getting the value of input text?

here's my code and its not working..
  1. if ( $(":input").value = "Test"){
  2.             $("body").css("background","yellow");
  3. } else {
  4.       $("body").css("background","white");
  5. }
thank you in advance and God bless you all!