Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8304725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:55:23+00:00 2026-06-08T17:55:23+00:00

I have styled beatiful select, but I need to connect it to database, so

  • 0

I have styled beatiful select, but I need to connect it to database, so I have simple html code:

<select class="chzn-select" tabindex="1" style="width:300px;" data-placeholder="Choose a Category">
            <option value=""></option> 
            <option value="Fashion">Fashion</option> 
            <option value="Coupon">Coupon</option> 
            <option value="Sport">Sport</option> 
    </select>

and code using rails form helpers:

  <%= f.select :category, options_for_select(%w[Fashion Health Travel Food Coupons]), :class => "chzn-select"%>

EDIT: Add html code generated by rails :

     <select id="website_category" name="website[category]"><option value="Fashion">Fashion</option>
  <option value="Health">Health</option>
  <option value="Travel">Travel</option>
  <option value="Food">Food</option>
   <option value="Coupons">Coupons</option></select>

It shows me blank page, however code is generating due to I see it in my Google console.

I should set all other attributes or what is porblem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:55:24+00:00Added an answer on June 8, 2026 at 5:55 pm

    I was needed to call it correctly from js file:

             $("#website_category").chosen();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have re-styled a textbox using a control template. The styling works well but
I have a styled button on my website. But when I click it, it
I have this code: <div id=one> <div id=two>my text here</div> </div> I have styled
I have the following list in HTML: <ul> <li><span class=button>A</span></li> <li><span class=button>B</span></li> <li><span class=button>C</span></li>
This is the HTML I have: p_tags = '''<p class=foo-body> <font class=test-proof>Full name</font> Foobar<br
I have a styled div where I need to add a long text. I
I have a styled button and a styled link (to match the button's style).
I have an HTML menu and i have styled it with CSS to highlight
I have standard select list - https://i.stack.imgur.com/qm4bj.jpg I need to make it beautiful Beautiful
I have an ordered list which I have styled in two ways: Coloured the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.