I have a JQuery function, in which I define a span element. I just want to replace the "130px" with a variable. I have a variable with the value "width:130px". I obviously don't know how to put it in there. Thank you for any ideas!
link.append('<span class="title" style="width:130px">' + item.title + '</span>');
link.css('width', yourVar). .css can also take an Object.