Lots of jQuery autocomplete questions related to the (yow) style, but none of them want to "match the style of the parent input."
My background
I am a java / C ++ programmer who also had quite a lot of experience in JS ... inside the PDF. PDF uses a completely different object model from HTML, and I'm just starting to get used to it. I am brand new to jQuery.
I would like my JQUI autocomplete control style to match the appropriate input type. Border style, font, font size, etc.
Question
This is a form making application that doesn't really speak CSS (as far as users are concerned). Each field can have its own font and font size, background color, etc. Hopefully not, but Dammit Jim, I'm a programmer, not a graphic designer! Not my department.
In any case, this is software-generated HTML (runs in Java), so some things that can be simple in manual markup are out of the question, and some things that would still be impossible are pretty trivial.
Each input field has an identifier, so creating the right selector is very simple. What to do with this selector is part of the scratches on the head. Acquiring and analyzing a style attribute in a script at runtime is like "Too much work." There must be a better way.
Ideally, it would look something like this:
var stylesToCopy = $("#fieldID").???;
$(???).magicallyApplyStyles(stylesToCopy);
, ( firebug), -, UL "" . , . Grr.
, ?
: autocomplete() , . Grr.
Hrrm...
( ), , . , , UL.
kludgy, : div appendTo. " , -n-so". , ... , . DOM.
$("
css , ... " ". , , jQuery, - .