Looks like you have some syntax errors with your second one.
Try this:
$('div.draggable-text').on('click', function () {
alert('clicked!');
// some more coding here...
});
Read the syntax for the jQuery 'on' event to understand better what arguments go in. http://api.jquery.com/on/
Cheers!