Skip to content
Permalink
Browse files
Autocomplete (Combobox demo): Set the button type to button to preven…
…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 cf48a3c5c8da7bc90a9424e333d53d0e178e7885
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 )

0 comments on commit cf48a3c

Please sign in to comment.