|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Selecting a row in a table
Hi, I have a html table which has several rows. On each row there is a button to remove that entry. However I am having trouble referenceing the row and/or passing that row to the post array
Any help would be great, Thanks in advance |
|
#2
|
|||
|
|||
|
RE: Selecting a row in a table
You would need to make sure that each row is it's own form that contains a hidden input element that has a value that equates to some kind of id for the row that needs to be deleted. Post some code based on what you already have and I will see if I can help.
|
|
#3
|
|||
|
|||
|
RE: Selecting a row in a table
|
|
#4
|
|||
|
|||
|
RE: Selecting a row in a table
you pretty much have what you need, you just need some identifier for the cart Item. If $code is a unique identifier for the item, put that value into a hidden input element within the form. once posted, you will have that code to use for any deletion you need to do. Hope that makes sense!!
|
|
#5
|
|||
|
|||
|
RE: Selecting a row in a table
Do you know how to do the 'hidden input' and will this input be passed as a post value?
|
|
#6
|
|||
|
|||
|
RE: Selecting a row in a table
here is an example of a hidden input form element...
<input type="hidden" name="ID" value="5" > and yes, it is passed as a post value. It is passed just like a textbox input element but it is just not visible in the browser. |
|
#7
|
|||
|
|||
|
RE: Selecting a row in a table
Thanks that works fine
My basket is complete!!! |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Selecting a row in a table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|