You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you put a html id into the form tag, with
form_tag({:action => 'your_action'}, method: 'get', id: 'formid')
you can get the submit on select behavior simply by:
$('#your_field').bind('railsAutocomplete.select', function(event, data){
/* Do something here /
/ alert(data.item.id); */
$('#formid').submit();
});
The text was updated successfully, but these errors were encountered:
If you put a html id into the form tag, with
form_tag({:action => 'your_action'}, method: 'get', id: 'formid')
you can get the submit on select behavior simply by:
$('#your_field').bind('railsAutocomplete.select', function(event, data){
/* Do something here /
/ alert(data.item.id); */
$('#formid').submit();
});
The text was updated successfully, but these errors were encountered: