Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can anyone help me with Java? I am confused.?

I have two classes: .article and .column.

If there's only one in HTML document .article class, I want the .column class to disappear or to be removed.

if ($(".article").length = 1)

{

}

I googled a little bit and in the most of the examples it is shown that I must add a button and when a user presses to that button, in this case it will work.

Can you please help me??? :(

Update:

I don't want to actually add a button. I want it to be functional when user opens the website.

2 Answers

Relevance
  • Anonymous
    2 years ago

    You're using the assignment operator. Use == for the equality operator.

  • 2 years ago

    You would use == to test for equality in your if statement.

Still have questions? Get your answers by asking now.