checkbox update/delete

Discussion in 'Programming' started by theborg72, Jun 6, 2012.

  1. #1
    if I have a checkbox and the value I want to make it a link

    <a href="uppdate02.cfm?id=(checkbox value)">Uppdatera</a>
    Code (markup):
    this is the code i am using (it is a recordset written in coldfusion)

    <cfoutput query="recTest">
      <table width="561" border="1">
        <tr>
          <td width="43"><form id="form1" name="form1" method="GET" action="uppdat02.cfm">
            <input type="checkbox" name="id" id="YesNo" value="#recTest.AlbID#"/>
             <input type="submit" value="Submit" />
          </form> </td>
          <td width="502">#recTest.Album#</td>
        </tr>
      </table></cfoutput>
    Code (markup):
    I want the value from YesNo should be in the link if I have a checkbox and the value I want to make it a link

    I have tried to make it work with javascript
    <a href="#" onclick="return this.href='uppdate02.cfm?id='+document.getElementById('YesNo').value">Uppdatera</a>
    Code (markup):
    but then he sees only the first recordset and not the others.
    would need assistance to get to so it is possible to create an update / delete link for the form
    uppdate02.cfm?id=(checkbox value)
    Code (markup):

     
    theborg72, Jun 6, 2012 IP