minhd
9/3/2012 - 5:03 AM

jquery object creation shorthand

jquery object creation shorthand

$("<div />",
{
    id: "test",
    name: "test",
    class: "test-class",
    css: {
        width: "100px",
        height: "100px",
        backgroundColor: "#fff"
    }
});