How I can access Editor`s field "for" property with jQuery?
How I can access Editor`s field "for" property with jQuery?
I need to use personal css rules for every element in Editor's form. I tried use "for" property of Editor`s field for this purpose, but can't access it with css or jQuery selectors.
For example:
<label data-dte-e="label" class="col-lg-4 control-label" for="DTE_Field_modx_vkrklient.city">Город<div data-dte-e="msg-label" class="DTE_Label_Info"></div></label>
How I can select DTE_Field_modx_vkrklient.city
string for this label element?
And second problem:
How access DTE_Field_Name_modx_vkrklient.toemail
class in this example:
<div class="DTE_Field DTE_Field_Type_text DTE_Field_Name_modx_vkrklient.toemail">
. . .
</div>
Update: The second problem solved by this selector:
$('.DTE_Field_Name_modx_vkrklient\\.toemail')
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The
field().node()
method could also be used:$( 'label', editor.field( ... ).node() );
.Allan
Thanks, Allan. This is more suited for my purposes.