It might be the way you're inserting this with jQuery. It might be a jQuery issue. Try this instead:
var search_button = $('<input'
+ ' type="submit"'
+ ' value="🔍"'
+ ' class="search_button"'
+ ' name="search_button"'
+' />').appendTo('body');