]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete (Combobox demo): Set the button type to button to prevent form submissio...
authorMario Visic <mario@mariovisic.com>
Thu, 16 Dec 2010 10:10:30 +0000 (18:10 +0800)
committerScott González <scott.gonzalez@gmail.com>
Thu, 16 Dec 2010 12:59:37 +0000 (07:59 -0500)
demos/autocomplete/combobox.html

index 9f92ae108932b6754b327da60ea69cd3d103cf2f..37bb0c179ee657c39bc7756e1cb00b87a12e4c20 100644 (file)
@@ -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 )