Att value from title as css-width

Att value from title as css-width

Hi!
I have a digitvalue in the title of my element, and i want to set the width of this element based on the title.
$("li[title]").css({ width: $(this).attr("title") + "px" });

i tried that, but not working, it wont just set the width, any idea?