jQuery selector to go through all table rows in specific table column
Jiri N.Aug 23 2012 — edited Aug 23 2012Hello,
I am in situation when I need to disable some tabular form cell, when value in other tabular form cell equals to some value.
e.g. I need to disable value in column2, when value in same row in column1 = 1.
I have created the dynamic action (DA) which is fired after the refresh of page region.
And now I am wondering how to construct the dynamic action code. I think that jQuery is the correct approach, but I have not found useful example yet. I think I need to loop through the table, check value in needed column and disable corespondent value in other column if needed.
I have created an example on apex.oracle.com.
[www.apex.oracle.com|http://www.apex.oracle.com]
username/passwd
kurin@centrum.cz/kurintest
workspace
kurintest
application:
Application 54076 - jQUery selector
In this appl. I would like to disable second column in the tabular form table (REGION_NAME) when value in first column (REGION_ID_DISPLAY) = 1 or 3.
I would like to user table headers as identifiers to avoid problems when column will be moved to other position.
Could anyone help me with this (maybe very easy) task?
Thanks in advance!
-Jiri
Edited by: Jiri N. on Aug 23, 2012 1:31 AM