Let's say I have following jQuery line where I am trying to change the "id" of the element after cloning the row of a table. How can I refer to the instance of the element and pass it to "buildControlId" function.
$row.find("select [id$='ctlType']").attr("id", buildControlId(???));
I could do it like this, but I am looking for shorter version without needing to declare variable.
var $el = $row.find("select [id$='ctlType']");
$el.attr("id", buildControlId($el[0]));