1

I've ready some similar questions and have verified that jquery is the first script included...

// this test confirms that jquery is defined
if (typeof jQuery == 'undefined') {
    alert('jquery not defined');    
}
// (this is being alerted)
else { alert( 'jquery is defined'); }

// this is what I want to achieve (to begin with)
jquery("#free-signup").css( 'display', 'none' );

and jquery does seem to be defined... what am I doing wrong?!

0

1 Answer 1

4

JavaScript is case sensitive. You should use correct object name:

// v
  jQuery("#free-signup").css( 'display', 'none' );

or the shortcut:

$("#free-signup").css( 'display', 'none' );
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.