I write a function so that when you click on an element, it becomes extensible.
$(".newElement").on('dblclick', function () { $(this).resizable({containment: "#contener"}); });
here everything works, but how to make it so that with a single click it stops being stretched?
$(".newElement").click(function () { $(this)??????; });
Who knows how to add the following function?