Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Live table update using AJAX


LinusIT - 10:19 am on May 30, 2012 (gmt 0)


After much fiddling about (not knowing Javascript if conditions very well) I've got it working.

if (inn > 0) {
$("#in_"+ID).html("£" + inn);
$("#out_"+ID).html(out);
}
else
{
$("#out_"+ID).html("£" + out);
$("#in_"+ID).html(inn);
}


Thank you for all your help with this.


Thread source:: http://www.webmasterworld.com/javascript/4456322.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com