$(function() {
if ($fa.ismod = true) {
if (document.getElementById("input#message").value = "/msg") {
alert('tudo okay');
}
}
});
This code should alert if the input # message contains the / msg text but it returns this:
Uncaught TypeError: Can not set property 'value' of null (...)