1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Html code

Discussion in 'Programming' started by ssimon171078, Nov 27, 2014.

  1. #1
    i have html code how can i select by ID and click this link:
    <td>
    Active
    </td>
    <td><input class="checkbox approved" id="gig_" name="gig[]" type="checkbox" value="298038"/></td></tr>
    <input type="hidden" name="subme" value="1"/></tbody>
    Code (markup):

     
    Last edited by a moderator: Nov 27, 2014
    ssimon171078, Nov 27, 2014 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    There is no link in that html snippet.
     
    sarahk, Nov 27, 2014 IP
  3. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #3
    The code is also horrible. If you're looking for a way to auto-submit the form, then that can be done, but it would be better to see the whole code. I'm assuming that the submit-button gets visible if that checkbox (or maybe several checkboxes) are set?
     
    PoPSiCLe, Nov 27, 2014 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    Are there other inputs in the form you want submitted when that box is checked? If not, don't use a form; use an anchor and pass it as getData.

    If there are other inputs, what you'll want to do is hook "onchange" on that checkbox, then look for the parent form and do a Form.submit() on that.
     
    deathshadow, Nov 27, 2014 IP
  5. ssimon171078

    ssimon171078 Well-Known Member

    Messages:
    276
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    i need to submit form html code of form is: how can i to click on this form can i use getElementByID ?
    class="#" method="post">
    You can bump 5 services per 24 hours.
    <br/><br/><input type="hidden" name="manualbump" value="1"><input type="submit" name="verifybutton" class="btn btn-danger negativetopbump" value="Free Bump" id="manualverify"></form>
     
    ssimon171078, Nov 28, 2014 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Your question still doesn't make any sense as 1) you're not showing the complete form (specifically the ACTION attribute!), 2) not sure what you are doing that would even NEED scripting for.

    Instead of post, use get, then you could just:

    <a href="action.php?manualbump=1&amp;vertifybutton=Free%20Bump">Bump Services for 24 hours</a>

    Then you can click on it... NOT that you can't click on a submit...

    WAIT... when you say click do you actually mean "click on it with the mouse" or are you simply trying to submit the form from scripting? (which has absolutely nothing to do with "clicking" on anything...)
     
    deathshadow, Nov 28, 2014 IP