How to Capture it



  • hi All

    i am trying to make a config but i am unable to capture Date and Year in it i try hard but not yet success hope someone help me out

    source:
    <div class="frm-lbl-txt"> Expiration Date :</div>
    <div class="frm-cnt-box"> <select name="UCExpiryMonth:UCMonth" id="UCExpiryMonth_UCMonth">

    <option value="06">06</option>
    <option value="07">07</option>
    <option selected="selected" value="08">08</option>
    <option value="09">09</option>
    <option value="10">10</option>
    

    </select>
    <select name="UCExpiryYear:UCYear" id="UCExpiryYear_UCYear">

    <option value="2018">2018</option>
    <option value="2019">2019</option>
    <option selected="selected" value="2020">2020</option>
    <option value="2021">2021</option>
    <option value="2022">2022</option>
    

    </select>
    </div>

    i want to capture :<option selected="selected" value="08">08</option> this date
    And : <option selected="selected" value="2020">2020</option> this year


  • Admin

    Css Selector [selected=selected] will match both, so you can make 2 parse blocks one with index 0 and one with index 1 and you'll have both. Use innerHTML as attribute


Log in to reply