Sorry, should be:

questions.js.coffee:
  $('#little_image').click ->
    if little_image.style.display == "block"  # Hide little image/show
big image
      $('#little_image').hide()
      $('#big_image_div').show()
      $('#big_image').show()

Both $('#big_image_div') and $('#big_image') cause the error. 
$('#big_image_div') just throws the first error.

I assume $('#little_image') is in the scope as it is called in the 
.click.  The big_image and big_image_div are id's on the same page but I 
don't know how to tell jQuery that...

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to