How to generate css with jQuery?
<p>i am working on the button generator and last step is to generate the css code for the div which is my button. i am using the code below but w can only store one value let say for the width how can i get another values for height padding etc..?</p>

<pre><code>function showWidth(ele, w) {
    $("#myCode").html(  "width:"   + w + ";"  + "&lt;br/&gt;" + " height: "   + w + ";" + "&lt;br/&gt;");
}

$("#code").click(function () { 
    showWidth("button", $("#valuePX").val()); 
    showWidth("button", $("#valuePX1").val()); 
});
</code></pre>
