Ruby on Rails Monday, November 30, 2015

<script>
$(document).ready(function () {
  $('#listing_format').change(function(e)
   {
    if (e.target.value=('Fixed price') {$("#listing_starting_bid").toggle( "blind" ); }
  })
})
</script>

<%= form_for(@listing) do |f| %>
  <% if @listing.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@listing.errors.count, "error") %> prohibited this listing from being saved:</h2>

etc ...

I want the document above to apply the blind effect to the starting bid field but nothing changes in the browser


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/29b6fc16-0d5e-42d9-af43-5416c433556c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment