Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: $ is not a function #71

Open
anj-bookwormhead opened this issue Feb 5, 2018 · 1 comment
Open

Uncaught TypeError: $ is not a function #71

anj-bookwormhead opened this issue Feb 5, 2018 · 1 comment

Comments

@anj-bookwormhead
Copy link

uncaught

Guys,, need help! I am experiencing "Uncaught TypeError: $ is not a function" in WordPress. I already add a noconflict function and declare $ as var but it's still not working. I have attached a screenshot :(

(function ($) {
var body = $( 'body' );

$ ('#flashMessage').hide()

$('#previewButton').click(function() {
const title = $("#blogTitleInput").val();
const content = $("#blogContentInput").val();

$("#blogTitlePreview").text(title);
$("#blogContentPreview").html(content);

$("#flashMessage")
.slideDown(1000)
.delay(3000)
.slideUp();
});

}(jQuery));

@panickz
Copy link

panickz commented Mar 9, 2018

Are you calling the jQuery script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants