Missing before statement
I have the following piece of code that I would like to style:
var dateString = val.date; // this display my blog post date e.g.
"2013-09-02 15:04:50"
var split = dateString.split(' ');
output += '<div class="postxt">' (split[0] +" at "+ split[1]) '</div>';
How can I add a span or a div for both split0 & split1
Thanks
No comments:
Post a Comment