﻿id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking 11833 Can't assign a function to a specific element using jQuery jquery@… "This works in regular javascript: var mdiv = document.getElementById(""mydiv""); mdiv.myUpdateUI = function () { alert('works'); // Code to update div here } This doesn't do anything when I try: $(""#mydiv).myUpdateUI = function () { alert('doesn't work'); // Code to update div here } While I understand there is a $.fn ability, the ""myUpdateUI()"" method would only ever apply to that one object, so putting it in ALL of jQuery seems wrong. I searched before posting, but didn't find anything. Thanks for your time. jQuery is great BTW. " enhancement closed undecided None unfiled 1.7.2 invalid