Jump to content

How to select the radio button that doesn't have a radio group's name or ID?


Servant
 Share

Recommended Posts

How to _IEFormElementRadioSelect a radio button that doesn't have a radio group's name or ID?

_IEFormElementRadioSelect($o_object, $s_string, $s_name)

<fieldset class="share-item">
      <legend>share a link or news</legend>

      <div class="share-item-types"><span class="radio-group-label">Discussion type:</span>
        <span class="radio-group">
        <input type="radio" class="fancy" id="discussion-type-general" name="forumtype" value="7" checked="true" tabindex="0"><label class="radio-label" for="discussion-type-general">General</label>

        <input type="radio" class="fancy" id="discussion-type-job" name="forumtype" value="5" tabindex="0"><label class="radio-label" for="discussion-type-job">Job</label>

        <input type="radio" class="fancy" id="discussion-type-promotion" name="forumtype" value="8" tabindex="0"><label class="radio-label" for="discussion-type-promotion">Promotion</label>
        </span>
      </div>

      <div class="share-item-group">
          <input type="hidden" value="0" name="contentImageCount" id="share-img-total">
          <input type="hidden" value="-1" name="contentImageIndex" id="share-img-selected-idx">
          <input type="hidden" value="" name="contentImage" id="share-img-selected-url">
          <input type="hidden" value="" name="contentEntityID" id="share-entity-id">
          <input type="hidden" value="" name="contentUrl" id="share-entity-url">

          <div id="share-mode" class="share-mode">
            <div class="share-loading"></div>

            <div id="share-view" class="share-preview"></div>

            <div class="share-edit">
              <ul id="share-edit-list" class="form">
                <li id="share-edit-title-wrapper">
                    <input type="text" name="contentTitle" value="" id="share-edit-title" tabindex="0" class="text share-edit-title" maxlength="70">
                </li>
                <li id="share-edit-meta"></li>
                <li id="share-edit-summary-wrapper">
                    <textarea name="contentSummary" id="share-edit-summary" tabindex="0" class="text" maxlength="250"></textarea>
                </li>
                <li id="share-include-photo-wrapper">
                    <input type="checkbox" name="contentImageIncluded" value="true" id="share-include-photo" class="check" checked="checked" tabindex="0">
                    <label for="share-include-photo">Include Photo</label>
                </li>
                <li>
                  <input type="button" name="#" value="Save" class="btn-primary" id="share-edit-submit" tabindex="0">
                  or
                  <a href="#" tabindex="0" id="share-edit-cancel">Cancel</a>
                </li>
              </ul>
            </div>

          </div>

            <div class="post-actions">
            <div class="post-actions-row">

            <div class="submit">
                <input type="submit" name="postItem" value="Share" class="btn-primary share-submit disabled" id="share-submit" tabindex="0" disabled="">
            </div>
          </div>
          </div>
      </div>
    </fieldset>

This is what I want to select:

<input type="radio" class="fancy" id="discussion-type-job" name="forumtype" value="5" tabindex="0"><label class="radio-label" for="discussion-type-job">Job</label>
Edited by Servant
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...