forum

Home / DeveloperSection / Forums / Change attributes of a DOM element when it appears

Change attributes of a DOM element when it appears

Anonymous User178805-Apr-2013
Hi All!

Is there a way to change the attribute of a DOM element as it is created? I have an input (has an ID) that is created by a plugin. I need to change the 

placeholder of that input when it appears.

i.e.

$("#token-input_sample").live("attr","placeholder","place");
Code above doesn't work.

Thanks in advance!

Updated on 05-Apr-2013
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By