Skip to content

Commit 5407e21

Browse files
exsideunderovsky
authored andcommitted
Change remove tag to button
It seems more semantic than a an anchor tag with a # href.
1 parent 02e0b49 commit 5407e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tagsinput-revisited.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
$('<span>').addClass('tag').append(
3131
$('<span>').text(value),
32-
$('<a>', {href: '#'}).click(function() {
32+
$('<button>', {class: 'tag-remove'}).click(function() {
3333
return $('#' + id).removeTag(encodeURI(value));
3434
})
3535
).insertBefore('#' + id + '_addTag');

0 commit comments

Comments
 (0)