Hi,
I am using country_select tag for displaying the list of all countries in the dropdown. I have faced issue for applying css class to fix the width for the slect box.
I have tried passing the html options as below
= f.country_select(:country, {:class => "span2", :id => "select01"})
But select box was not effected with style. After making some googling found the solution. Below is the solution.
f.country_select(:country, {},{}, {:class => "span2", :id => "select01"})
Need to pass two blank hashes. The fourth parameter is the html options parameter for country_select tag.
Thank You,
Uma Mahesh.
No comments:
Post a Comment