Hi, this is not a dialog, but the property fields when create a new page. I think the problem is this js is called before the page render completed (I can only see content in the header tag), therefore anything you set for selector will be "not defined". Please let me know if I understand this wrong...