Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8200597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:30:14+00:00 2026-06-07T06:30:14+00:00

Somehow, my code does not work. I can’t figure out why, I’m completely new

  • 0

Somehow, my code does not work. I can’t figure out why, I’m completely new to javascript and thought this would work, in php it’s similar. if(string != “string”) works in PHP, but not in javascript, in javascript the code just continues. If I do it with =! it doesn’t works…

<SCRIPT LANGUAGE="JavaScript">
var lastsite;

function checkSite (form){
if (document.getElementById('steam').checked  && lastsite != 'steam')
{
    $('#signaturestuff').append('<b>Style:</b> <input type="radio" name="style" value="1" id="steamstyle1" onclick="testButton();"> Style 1');
var lastsite = "steam";
    }
}
</SCRIPT>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:30:16+00:00Added an answer on June 7, 2026 at 6:30 am
    1. You can compare strings with “==” in PHP and Javascript (but not in C, C++, C# or Java)

    2. You probably should compare strings with Javascript compareLocale ()

    3. In either case, you need to look at the value of “lastsite” in order to figure out why your comparison isn’t working. Who knows – maybe you just forgot to assign it 😉

    4. Firebug is a wonderful tool, if you’re not already familiar with it.

    5. “Javascript: The Good Parts” is a wonderful book, if you’ve not already read it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is this good code? can it be simplified somehow? SELECT u.id,u.title,u.title,u.first,u.last FROM (((tblusers u
I thought I has this nth-child or nth-of-type stuff down, but somehow it does
Somehow my code doesn't work any more (it did work before with the exact
My code looks somehow like this: //INCLUDES FILE *file; void handlesocket(int socket); int main(int
I'm pretty sure there's some quick and easy error in this code but somehow
I have a static method in my code that I would like somehow to
Somehow this doesn't work... var paper = Raphael(test, 500, 500); var testpath = paper.path('M100
I've been trying to fix this for two hours straight and I can't figure
Recently someone on Stack Overflow told me that the code below does not leak,
The following code does not compile: var next: (A, A) = (null, n) Error:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.