Assigning events to elements with same class name

Change that to

ttt[i].addEventListener('click', function() {editUldDetails(this)}, false);

to get it working (assuming that ‘this’ points to what you expect it to point to).

You need one listener per type of event.

Instead of attaching them all to each element you could instead attach them to the body tag and then test if the element that triggered the event has the class and process that element if it does from within the listener. That way you only have one dragstart event listener for the page instead of one per element having the class. Similarly for the other events.