I have a generic function to get data and disable an another HTML tag :
function Testing(htmlData, htmlResult) {
//here I'd like get the value of htmldata (it's a tag name)
}
I call this function like this :
<input type="text" id="MyTextBox" />
<input type="text" id="MyTextBoxResult" />
$("#MyTextBox").blur(function () {
Testing("MyTextBox", "MyTextBoxResult");
});
But you could also pass the jQuery object directly to your function
and your function would be