0

If someone is using this jquery combobox http://jonathan.tang.name/code/jquery_combobox, I am trying to get a solution for

  1. Make it's width set dynamically based on the longest element.
  2. "lazy load" the values when the element is clicked or user tabs into it.

If this isn't possible, is there another solution i can use that has similar qualities and is just as fast?

1 Answer 1

1

This is a start, but I would look here first though. http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/

$('ui-combobox-list').each(function(i) {
  var el = $(this);
  var widest = 0;
  if (el.width() > widest) {widest = el.width();}
  $('#input-id').width(widest);
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.