Drop down list box button

Is is necessary to have a button here?

Repuestos
<% @rp_parts.each do |rp_part| %> > <%= rp_part.name%> <% end %>

I want to capture @repair_ticket.rp_item without a button.

just add the onchange=“this.form.submit();” like you would normally,
since you aren’t using the form helpers properly to build the select
box. It will have to be within a tag though
You can add your ajax to the onsubmit handler of the form tag.

Seriously, though, this is not good rails development, please check
out the “best practice” ways to do things like this before hacking
your own solutions. It’s not PHP!

http://www.authomedia.co.uk/dev/repairs.zip

Joe

On Jan 8, 9:51 pm, John S. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs