Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

111
Views
function Invalid left-hand side in assignment

I'm trying to learn JQuery and I got this error. Invalid left-hand side in assignment I'm trying to point the selector without using any events function.

        let a = $("td:contains('"+ word +"')") = function(){
            $(this).closest('tr').hide();
            $(this).closest('tr').wrap('<hidden>');
            state = true;
        }         
        a();
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The error likely lies in this part:

$("...")=function(){...}

$("...") already returns an object, so you can't assign a function() to it.

From your code, I guess what you want may be this:

let a=(function(){...}).bind($("..."));

a();
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!