Adding content using jQuery

Recently I have restarted to program the first web-app: the conversion of my storm sewer software. I focalized my attention on the input interface and despite the easiness and versatility of jQuery, I have got bogged down in details. I have reached a “result” but is full of bugs and not optimal.