Commit 6f894c81 by ichuang

use jquery for error msg in course_about

parent 871ed954
......@@ -20,7 +20,7 @@
if(json.success) {
location.href="${reverse('dashboard')}";
}else{
document.getElementById('register_message').innerHTML = "<p><font color='red'>" + json.error + "</font></p>";
$('#register_message).html("<p><font color='red'>" + json.error + "</font></p>")
}
});
})(this)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment