Getting text from file and displaying split into additional divs
Hi All
Sorry if this sounds super simple but I just started with JQuery and am getting myself lost totally
I have gon through the tutorials and getting there slowly but I need to be able to do the following
I have a text file that contains as listed below :
Total Taken : Number
Total Remain : number
Total Closed : number
I can get to read this into my page using this
$(document).ready(function() {
$(".text").load("comercialsupport.txt"
).text()
});
What I wish to do is put the areas either side of the Colon into different divs that are styled to certain width's
<div id="Total_Lable"> </div><div> : </div><div id="Total_Numbers"> </div>
I know I need to use the split function but just cannot get my head around it....
Thanks you for your time in advance.....
Roger