How I can access Editor`s field "for" property with jQuery?

How I can access Editor`s field "for" property with jQuery?

VitalizVitaliz Posts: 71Questions: 7Answers: 1
edited February 2016 in Editor

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

Answers

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Answer ✓

    The field().node() method could also be used: $( 'label', editor.field( ... ).node() );.

    Allan

  • VitalizVitaliz Posts: 71Questions: 7Answers: 1

    The field().node() method could also be used

    Thanks, Allan. This is more suited for my purposes.

This discussion has been closed.