Jump to content
  • 0

добраться до элемента в документе


asker2
 Share

Question

На странице формируется список нод, вот код и одна нода в развернутом виде:

<div id="node-29" class="node">node29</div>

<div id="node-30" class="node">
<div class="content">
<div class="field field-type-cck-latlon field-field-gmap-coordinate">
<div class="field-label">Месторасположение: </div>
<div class="field-items">

<div class="field-item">1.000000, 2.000000</div>

</div>
</div>
<fieldset class="fieldgroup group--">
<legend>Адрес обьекта</legend>
<div class="field field-type-text field-field-city">Data 1</div>
<div class="field field-type-text field-field-street">Data 2</div>
</fieldset>
<div class="field field-type-image field-field-photo2">Data 3</div>
<div class="field field-type-image field-field-photo1">Data 4</div>
</div>
<div class="clear-block clear"></div>
</div>

<div id="node-31" class="node">node31</div>

Как добраться до значения у <div class="field-item">1.000000, 2.000000</div> в node-30 с помошью jquery ?

тк нод на странице несколько вариант $('.field-item').html() не подходит :)

Edited by asker2
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy