Answer the question
In order to leave comments, you need to log in
Why does on change only fire once?
if res.code is '300'
$( "#main" ).load "profile.html"
else
$( "#main" ).load "signin.html"
$( document ).on "change", ".signin", () ->
console.log 'in'
$( document ).on "change", ".profile", () ->
console.log 'out'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question