function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jgaiottojgaiotto 

jQuery and inline edit support

Hi everyone,

 

I would like to access to the textboxes created when a user doubleclick on a field <apex:inlineEditSupport />, is it possible thought ?

 

Thank you !

Best Answer chosen by Admin (Salesforce Developers) 
jgaiottojgaiotto

Nevermind, I found a solution.

 

I used jQuery and the ID of the span which contains the textboxes.

 

After page load, the textboxes don't exist. But after doubleclick, they are created.

 

So I used this :

 

j$("[id*='ListeningDOM_ilecell']").bind('DOMSubtreeModified', function() {
    j$(this).find('input').numeric_input();
});

[id*='someString'] is similar to a " like '%someString' "

 

 

At page load, jQuery tells to all inlineEditSupport with id like '%ListeningDOM-ilecell' to find textboxes in their sub tree after DOM changed, and to do some action on it.

 

I hope I have been clear enough ;)