3
$(function() {
if ($fa.ismod = true) {
if (document.getElementById("input#message").value = "/msg") {
alert('tudo okay');
}
}
});
This code should do an Alert if input#message contains the text /msg but it returns this:
Uncaught Typeerror: Cannot set Property 'value' of null(...)
The getElementById selector is incorrect and in condition
if
you are assigning the value "/msg" not comparing.– Lucas Fontes Gaspareto