Steps 3 and 4: Toggling and Removing of Glyphicon Star


Hi Everyone,

I've got difficulties toggling the glyphicon star. Below is my jQuery:

var main = function() {
  $('form').submit(function() {
    var text = $("#todo").val();  
    var html = template(text);
 $(document).on("click", '.glyphicon-star', function() {
    	"click", ".glyphicon-remove", function (click) {
    return false;  

Please advise as to why the glyphicon does not respond to any clicking.

Thank you very much in advance!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.