The Daily WTF
Follow
CodeSOD: Required Requirements
A web application required fields to be marked with an asterisk (*). Initially, the team planned to use HTML to mark the required fields, but later opted to track the field requirements in a database. However, instead of directly outputting the asterisk in the HTML, they decided to use a CSS class and jQuery to inject the asterisk. This approach was implemented even though the required fields were hard-coded in the HTML, leading to the sole use of jQuery in the application. Despite the unnecessary use of jQuery, the code remains unchanged due to reluctance to make changes.