Skip to content

Commit

Permalink
Autocomplete (Combobox demo): Set the button type to button to preven…
Browse files Browse the repository at this point in the history
…t form submission. Fixes #6755 - Autocomplete: The combobox "show all" button submits forms.
  • Loading branch information
mariovisic authored and scottgonzalez committed Dec 16, 2010
1 parent 6731b0e commit cf48a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/autocomplete/combobox.html
Expand Up @@ -82,7 +82,7 @@
.appendTo( ul );
};

this.button = $( "<button>&nbsp;</button>" )
this.button = $( "<button type='button'>&nbsp;</button>" )
.attr( "tabIndex", -1 )
.attr( "title", "Show All Items" )
.insertAfter( input )
Expand Down

0 comments on commit cf48a3c

Please sign in to comment.