0

I have this code

        $.ajax({
            type: "GET",
            url: "/api/forums/getForums",
            contentType: "application/json;charset=utf-8",
            dataType: "json",
            success: function (data) {
                var toAppend = '';
                for (var i = 0; i < data.length; i++) {
                    toAppend += '<option>' + data[i]['Name'] + '</option>';
                    toAppend += '<a href="AddForum.html">Add new forum</a>';
                }

                $("#forums").append(toAppend)
            }
       });

And this is what I get

enter image description here

'Add new forum' should be link but it's not, it's just regular text and I can't click on it. What am I doing wrong?

xena12
  • 17
  • 8

0 Answers0