Answer the question
In order to leave comments, you need to log in
I don't understand what's wrong? Error Invalid left-hand side in assignment?
There is this code:
$('.far .bar').click(function(e){
e.preventDefault(); // нужно для остального куска кода
var qwe = $(this).siblings('a');
$(qwe) = $('.far .bar a').attr('href');
alert(qwe);
});
$(qwe) = $('.far .bar a').attr('href');
Answer the question
In order to leave comments, you need to log in
$(qwe) = $('.far .bar a').attr('href');
The problem is in this line. It is not clear what exactly you were trying to do, but it turned out to be an erroneous construction, where you are trying to assign one jQuery object to another. It doesn't work like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question