I just tried your approach and everything worked just the way it
should. Can you post the rest of your code? How do you handle the
event that changes the CSS?

On Feb 19, 6:41 pm, davis <cinema...@gmail.com> wrote:
> I am trying to dynamically set css with variables I retrieve from what
> a user types into a textfield.
>
> This is the line of code:
>
> $(get_elem_hierarchy()).css($(this).data('theCss').theProp, $
> (this).data('theCss').theVal);
>
> Everything works fine. Both the css property and the css value trace
> to the console correctly but for whatever reason it won't set it. If I
> hardcode it works fine.
>
> I have tried wrapping quotes around those as well and that doesn't
> work either so that's not the issue.
>
> Am I missing something? I've looked all over and can't find anything
> that even remotely comes close to discussing this issue so maybe I'm
> going about this the wrong way.
>
> Any help would be greatly appreciated.

Reply via email to