New to Javscript and jQuery, so I assume this is a pretty simple question.
I have a date I want to split into a string, then print out the array.
var date = "12/10/2010";
var dateArray = date.split(/);
$('#printbox').html($(dateArray[0]));
<span id="printbox"></span>
Edit: The question is, how can I split "12/10/2010" into an array like this:
Array[0] = 12
Array[1] = 10
Array[3] = 2010
And how do I print them to HTML?