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

  • SEARCH
  • Home
  • 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 1027305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:13:15+00:00 2026-05-16T12:13:15+00:00

How do I style the select list element? Here’s my code as it is

  • 0

How do I style the select list element?
Here’s my code as it is now…

$('.editableSelect').editable(function(value, settings) {
    if (this.revert == value) {
        this.reset();
        return;
    }
    setSaveButtonRed(this);
    setDescFromAccountCode(this, value);
    return (value);
}, {
    type: 'select',
    submit: '<button type="submit" class="checkbookButton">OK</button>',
    data: $('#accountCodesForSelect').val(),
    cssclass: 'checkbookSelect',
    //style: 'font-family: Verdana,Helvetica,Sans-Serif; font-size:0.75em; width:700px;',
    tooltip: "Click to edit...."
});  

and the class checkbookSelect looks like this…

.checkbookSelect
{
    font-family:Verdana,Helvetica,Sans-Serif;
    font-size:0.75em;
}

But when I click in the, in this case, the table cell (and jEditable fires) and the select list appears, it’s not styled…

I’m thinking that the cssclass setting in jEditable is only for the span that jEditable creates and maybe doesn’t apply to whatever input element it creates…so maybe the answer is to use a more specific jQuery selector and/or jQuery’s live() method to choose the select list element and then apply the styling that way?

Note that I also tried using the style attribute/setting…it’s commented out above.

BTW jEditable is an awesome script…and I’ve blogged abt how to set up datepicker and jEditable here…

  • 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-05-16T12:13:16+00:00Added an answer on May 16, 2026 at 12:13 pm

    Was able to set styling on the drop down by adding this line to jquery.jeditable.js near line 270 or so of version 1.7.1…probably doesn’t matter re the exact line number but I put it there as that’s where the script author checks for settings.select

    $('select').addClass(settings.cssclass);
    

    I’m sure the selector could be tweaked too…but at least this works for now…I’ll tighten it up later but in case anyone else had the same question…just wanted to let you know how I got it to work

    I’ve refined the selector to this…

    $(form).children('select').addClass(settings.cssclass);
    

    works much better now…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 508k
  • Answers 508k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Turns out caching was working. FireBug wasn't picking it up… May 16, 2026 at 4:27 pm
  • Editorial Team
    Editorial Team added an answer Use java.util.concurrent.ThreadPoolExecutor#getTaskCount to get the number of the scheduled tasks… May 16, 2026 at 4:27 pm
  • Editorial Team
    Editorial Team added an answer Yikes, this answer got accepted and then I changed it.… May 16, 2026 at 4:27 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a SELECT list with several OPTION elements. Here is my naive approach
My Problem was: Add a value to a div element in a dropdown list.
This is related to my previous question about selecting visible elements . Now, here's
I´m using an unordered list to replace the select function. I have a state
I'm using the ui-multiselect widget to render a <select> list differently. I'm trying to
I'm trying to write a simple GTD-style todo list app with python and gtk
I have the following bit of code. I'm trying to dynamically add drop-down options
This would be my issue I have a drop down that's not displaying fully.
I have a problem with Updating Form Element Look and Feel under Update Panel
I am currently working with PHP code that random selects colors: <div onclick=location.href='<?php the_permalink()

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.