hi. I would like to delete some rows based on the textbox value (as criteria) then to replace the next column with "cancel" please see below sample data
Sample data below (in this example i will input "224" as criteria in my textbox)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]123[/TD]
[TD]XXX[/TD]
[TD]12[/TD]
[TD]541[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]123[/TD]
[TD]DDS[/TD]
[TD]245[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]123[/TD]
[TD]GGS[/TD]
[TD]54[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]224[/TD]
[TD]HRR[/TD]
[TD]554[/TD]
[TD]65[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]224[/TD]
[TD]SDFS[/TD]
[TD]645[/TD]
[TD]84[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]415[/TD]
[TD]SDG[/TD]
[TD]25[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]415[/TD]
[TD]HRE[/TD]
[TD]564[/TD]
[TD]87[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]415[/TD]
[TD]REE[/TD]
[TD]697[/TD]
[TD]56[/TD]
[/TR]
</tbody>[/TABLE]
RESULT data should be like this. (1 row with "224" was deleted, and retain 1 data but replace the column B with "Cancel" and other data were remove)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]123[/TD]
[TD]XXX[/TD]
[TD]12[/TD]
[TD]541[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]123[/TD]
[TD]DDS[/TD]
[TD]245[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]123[/TD]
[TD]GGS[/TD]
[TD]54[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]224[/TD]
[TD]CANCEL[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]415[/TD]
[TD]SDG[/TD]
[TD]25[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]415[/TD]
[TD]HRE[/TD]
[TD]564[/TD]
[TD]87[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]415[/TD]
[TD]REE[/TD]
[TD]697[/TD]
[TD]56[/TD]
[/TR]
</tbody>[/TABLE]
thanks in advance
Sample data below (in this example i will input "224" as criteria in my textbox)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]123[/TD]
[TD]XXX[/TD]
[TD]12[/TD]
[TD]541[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]123[/TD]
[TD]DDS[/TD]
[TD]245[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]123[/TD]
[TD]GGS[/TD]
[TD]54[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]224[/TD]
[TD]HRR[/TD]
[TD]554[/TD]
[TD]65[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]224[/TD]
[TD]SDFS[/TD]
[TD]645[/TD]
[TD]84[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]415[/TD]
[TD]SDG[/TD]
[TD]25[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]415[/TD]
[TD]HRE[/TD]
[TD]564[/TD]
[TD]87[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]415[/TD]
[TD]REE[/TD]
[TD]697[/TD]
[TD]56[/TD]
[/TR]
</tbody>[/TABLE]
RESULT data should be like this. (1 row with "224" was deleted, and retain 1 data but replace the column B with "Cancel" and other data were remove)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]123[/TD]
[TD]XXX[/TD]
[TD]12[/TD]
[TD]541[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]123[/TD]
[TD]DDS[/TD]
[TD]245[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]123[/TD]
[TD]GGS[/TD]
[TD]54[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]224[/TD]
[TD]CANCEL[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]415[/TD]
[TD]SDG[/TD]
[TD]25[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]415[/TD]
[TD]HRE[/TD]
[TD]564[/TD]
[TD]87[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]415[/TD]
[TD]REE[/TD]
[TD]697[/TD]
[TD]56[/TD]
[/TR]
</tbody>[/TABLE]
thanks in advance