error with javascript function

Asked

Viewed 48 times

0

Galera have and following code in javascript:

<script>
$('.valores,#qtd,#qtd_bo').mask('00.000.000,00', {
    reverse: true
});
</script>

It is a mask plugin, and works perfectly. However my phpStorm is marking the $ with the following error : unresolved Function or method $()

Someone knows what’s wrong?

  • 1

    Nothing, it must not have recognized jquery is just a Warning.

  • You got the jQuery loaded on the page?

  • jQuery loads on a separate page, this page is included inside the main one with PHP. I noticed that if I use the //noinspection Jsunresolvedfunction it does not check the Warning, is that correct? I have some better way to do this?

  • This might help you http://stackoverflow.com/questions/21616683/phpstorm-unresolved-function-or-method.

1 answer

1

I never used phpStorm, but from what I understand, if it is working OK the problem is only in the editor who thinks $ has never been declared or started.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.