Jquery select only this element with same class as other elements

I’m an idiot. I got it working.

 $(".code_gen").focus(function(){
var el = this;
requestAnimationFrame(function() {
selectElementContents(el);
});
});