1

I want to have event delegation like behavior when control's attribute value is set or changed.

i.e. Code like below should call a function $(controlSelector).attr('attrName','value');

$(input,select,inputarea).delegate('attributeNameToWatch','EventType',function(){}); 

I add custom attribute dynamically in my code.

I tried the above code with my preferred attribute name and EventType as "change" but it does not trigger when I add , set or change attribute value.

4

0 回答 0