$(function() {
if ($fa.ismod = true) {
if (document.getElementById("input#message").value = "/msg") {
alert('tudo okay');
}
}
});
Esse código deveria fazer um alert se a input#message contesse o texto /msg porem ele retorna isto:
Uncaught TypeError: Cannot set property 'value' of null(…)
if
você está atribuindo o valor "/msg" não comparando.