Users Pricing

forum

Home Forums Change attributes of a DOM element when it appears – MindStick

Change attributes of a DOM element when it appears

Anonymous User 2289 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!

2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md