Heavy traffic on key Essex road following crash during rush hour
Sam Thompson breaks his silence to make a huge announcement after ex Zara McDermott was linked to big boyband star
Mo Salah has to be separated from Trent Alexander-Arnold in heated moment in Liverpool training ahead of crunch PSG tie
Angela Rayner and Princess of Wales twin in pillarbox red ensembles at the Commonwealth Day Service
Baton-wielding track star breaks silence on shocking footage of her hitting opponent during race
Why is Lila Moss still dressing like her mum Kate - at 22?
Thousands of Essex residents to get cash boost if they have an account with this bank
Man arrested on suspicion of attempted murder after 'horrific attack' in Enfield
IBM dodges BMC's $1.6B bullet in US as London court slaps down LzLabs
IBM scored a pair of legal wins this week: The US Supreme Court declined to reinstate a $1.6 billion judgment previously awarded to BMC Software, and the High Court in London, England, ruled in favor of Big Blue in a lawsuit against LzLabs, which was accused of misappropriating IBM's mainframe technology.…
Workers can sue if they are given a desk that they think is 'low status', employment tribunal rules
Could ship that hit US tanker have been hacked? White House refuses to rule out foul play as 142,000 barrels of jet oil burns in sea off Yorkshire
M25 recap after crash near Brentwood causes rush hour chaos at Brook Street roundabout
NASA Eliminates Chief Scientist and Other Jobs At Its Headquarters
Read more of this story at Slashdot.
TOWIE star Chloe Brockett shares 'year from hell' after her leaving show
Historic bowls club faces closure over council's 'disastrous' plans to hike parking charges - by 2,000%
Couple who found migrant in bike rack fined £1,500 after calling police
Will Smith and wife Jada Pinkett issue message to fans after his 'inappropriate' act with female singer
I'm haunted by the unread texts my beautiful daughter sent before taking her own life age 19. There were signs she'd been unhappy as a baby. Here's what every parent must know...
Representative Line: Broken Up With
Marco found this wreck, left behind by a former co-worker:
$("#image_sample").html('<i><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />No image selected, select an image to see how it looks in the banner!</i>');This code uses the JQuery library to find an element in the web page with the ID "image_sample", and then replaces its contents with this hard-coded blob of HTML.
I really appreciate the use of self-closing, XHTML style BR tags, which was a fad between 2000 and 2002, but never truly caught on, and was basically forgotten by the time HTML5 dropped. But this developer insisted that self-closing tags were the "correct" way to write HTML.
Pity they didn't put any thought in the "correct" way to add blank space to page beyond line breaks. Or the correct way to populate the DOM that isn't accessing the inner HTML of an element.
At least this was a former co-worker.