Welcome Guest, Not a member yet? Register   Sign In
Javascript, Checkboxes & buttons problem
#1

[eluser]iloveci[/eluser]
Hello Everyone,

I have a tricky situation that I am trying to solve. My current solution is very dodgy and I need some assistance to fix it up.

I have a table of products with the following fields

checkbox, product name, product info, product price, & a submit button

The checkbox is used to filter through all the rows that are checked, in order to perform actions on multiple entries at once. However this required people to click the checkbox and some people forgot to and it resulted in problems.

So I wrote some simple javascript to enable the users to click anywhere in the table row, and it will select or de-select the row & display a selected class.

This works great EXCEPT when clicking the submit button, it counts as a click on the row and de-selects that row resulting in the action not working.

So my question is, Is there a better way to solve this problem? if so could you please give me a rough series of steps I'd need to do OR if you know a way I could disable the row click when a input button is clicked that would work too.

Thanks in advance,

iloveci


Messages In This Thread
Javascript, Checkboxes & buttons problem - by El Forum - 01-08-2011, 11:29 PM
Javascript, Checkboxes & buttons problem - by El Forum - 01-09-2011, 01:14 AM
Javascript, Checkboxes & buttons problem - by El Forum - 01-09-2011, 04:29 AM
Javascript, Checkboxes & buttons problem - by El Forum - 01-10-2011, 12:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB