HTML:
<body>
<p><a href="#" class="link" >Apples</a> <a href="#" class="link" >Berries</a> <a href="#" class="link">Carrots</a></p>
<select id="list"></select>
</body>
Jquery:
$('.link').click(function(){
var item = $(this).text();
$('#list').append('<option>'+item+'<\option>');
});
It should append new values from the HTML link tags such as apple or carrot but when I click on it it does this (get two lines for each one)
Results:

Evey click results in a two options one with the word the other with a blank. Even more odd it seems to work if I take out the html part of things.. Just use text.
I’m not sure why this is causing this behavior, but the issue is that
should be a forward slash