Hmmm.. this is what I have now. Is this ok?
<tr class="row">
     <td>
            <input class="item_id" id="order_item_id"
name="order[item_id]" type="hidden" />
            ....
     </td>
     <td>....</td>

     <td>
           <%= f.collection_select :item_name,
Item.all, :item_for_order, :name, { :name => "select", :onchange =>
"item_row($(this));"} %>
     </td>
</tr>

2009/8/7 Frederick Cheung <[email protected]>

>
>
> On Aug 7, 5:35 am, Ram <[email protected]> wrote:
> >
> > Anything wrong with my HTML structure that Safari is rejecting?
> >
>
> You shouldn;t have an input element there - The direct children of a
> tr tag should only be td tags (or similar (th etc.))
>
> Fred
>
> > thanks.
> >
> > On Aug 6, 4:51 pm, Ram <[email protected]> wrote:
> >
> >
> >
> > > Hi all,
> >
> > > Im using the jNice plugin on a select box in a form of mine. Im also
> > > calling a custom JS function which uses prototype on the same select
> > > box.
> >
> > > <%= f.collection_select :item_name, Item.all, :item_for_order, :name,
> > > { :name => "select", :onchange => "item_row($(this));"} %>
> >
> > > now both jNice and item_row() work in FF when i change the selected
> > > value. But it does not work in Safari. In safari, the page jumps to
> > > the top when i click on a selection, if i click on it again, jNice
> > > works. item_row() does not.
> >
> > > Now im not sure what the problem is. Im using jQuery.noConflict to
> > > avoid conflict between the two libraries and otherwise, the JS heavy
> > > page is working fine.
> >
> > > Anyone with any experience/ tips on this one?
> >
> > > Vinay.
> >
>


-- 
In Sport We Trust !!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to