Users Pricing

forum

home / developersection / forums / change attributes of a dom element when it appears

Change attributes of a DOM element when it appears

Anonymous User 2187 05 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!

I am a content writter !


2 Answers