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 cba92af commit ffc08557ad764d7aca17ea1c6e75a62f6eb65c15
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 ffc0855

Please sign in to comment.