|
How to disable a row in Oracle Application Express [message #571200 is a reply to message #571140] |
Thu, 22 November 2012 03:07 |
|
karthika21
Messages: 7 Registered: November 2012 Location: Bangalore
|
Junior Member |
|
|
Hi,
I hane the situation where,Based on the selection of a dropdown , the rows in the table has to be greyed out/disabled.
I mean i have the three options in the drop down list box i.e. option 1, option 2 , option 3. Suppose,
i) if i select the option 1 from the drop down box then the rows(10,20,30) should be disabled or greyed out.
ii) if i select the option 2 in the second row tthen the corresponding row should be enabled.
Here is the code:
<html>
<body>
<table id='tableID' border="1">
<tr>
<td> option </td>
<td> demo 1 </td>
<td> demo 2 </td>
<td> demo 3 </td>
</tr>
<tr>
<td>
<select name="f02" onchange="ob_TableToggleType(this);"
id="type0"><option value="0" selected="selected">- Select -</option>
<option value="demo 1" > demo 1</option>
<option value="demo 2" >demo 2</option>
<option value="demo 3" >demo 3</option>
<td> 10 </td>
<td> 20 </td>
<td> 30 </td>
</tr>
<tr>
<td>
<select name="f02" onchange="ob_TableToggleType(this);"
id="type0"><option value="0" selected="selected">- Select -</option>
<option value="demo 1" > demo 1</option>
<option value="demo 2" >demo 2</option>
<option value="demo 3" >demo 3</option>
<td> 40 </td>
<td> 50 </td>
<td> 60 </td>
<tr>
<tr>
<td>
<select name="f02" onchange="ob_TableToggleType(this);"
id="type0"><option value="0" selected="selected">- Select -</option>
<option value="demo 1" > demo 1</option>
<option value="demo 2" >demo 2</option>
<option value="demo 3" >demo 3</option>
<td> 70 </td>
<td> 80 </td>
<td> 90 </td>
</tr>
</body>
</html>
and the result, i have uploaded it.
Please help me in this issue.
Thanks in advance.
Regards,
Karthika
-
Attachment: sample.JPG
(Size: 10.95KB, Downloaded 1904 times)
|
|
|
|
|
Re: How to disable row in oracle apex [message #571426 is a reply to message #571343] |
Sun, 25 November 2012 23:07 |
|
karthika21
Messages: 7 Registered: November 2012 Location: Bangalore
|
Junior Member |
|
|
Hi,
Thanks a lot.
Actually if the option,demo 1 got selected in the drop down list box, then demo 1, demo 2, demo 3 rows ( i mean that values) should de disabled but if the demo 2 got selected in the drop down list box, then demo 1,demo 2, demo 3 rows( i mean that values) should be enabled.Based on the selection of the options, the enabling and disabling should occur.
This is the issue.
Thanks in advance.
Regards,
Karthika
[Updated on: Sun, 25 November 2012 23:09] Report message to a moderator
|
|
|
|
|
|
|
|