Skip navigation
Kalle4001
Currently Being Moderated

checkbox update/delete

Jun 6, 2012 11:50 PM

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

 

 

CODE: SELECT ALL

<a href="uppdate02.cfm?id=(checkbox value)">Uppdatera</a>

 

 

 

 

this is the code i am using (it is a recordset written in coldfusion)

 

 

CODE: SELECT ALL

<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>

 

 

 

 

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

CODE: SELECT ALL

<a href="#" onclick="return this.href='uppdate02.cfm?id='+document.getElementById('YesNo').value" >Uppdatera</a>

 

 

 

 

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

CODE: SELECT ALL

uppdate02.cfm?id=(checkbox value)


 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points