Avatar of BILL Carlisle
BILL Carlisle
Flag for United States of America asked on

jQuery - Click checkbox and want to select 4th column value

Hi,
I have a tabular report with column one checkbox and 3 data columns and forth column is select list.
When I click on row 23 I want the selected value of column 4 of row 23.

??? help.. thanks
jQuery

Avatar of undefined
Last Comment
BILL Carlisle

8/22/2022 - Mon
soupBoy

Please post some of your code....we will then add the correct JQuery/Javascript.
BILL Carlisle

ASKER
function setPageID(pCheckBx){
   alert('['+pCheckBx.value+']');

// pCheckBx lets say is the checkbox of row23
// Below is select list for Row23
//<select name="p_t01" id="P130_APPRV_CODE" size="1" class="selectlist">
//<option value="C" selected="selected">Current</option>
//<option value="H">Historical</option>
//</select>


   if(pCheckBx.checked){
     alert(pCheckBx.value);
     var l_bpcd_existing_list = $v('P130_BPCD_LIST');
     var l_apprvcd_existing_list = $v('P130_APPRVCD_LIST');


//Want to add "Current" to list at xxxxxxxxxxxxxxxxxx  
     $s('P130_APPRVCD_LIST', l_apprvcd_existing_list+':'+   xxxxxxxxxxxxxxxxxx  );


     $s('P130_BPCD_LIST', l_bpcd_existing_list+':'+pCheckBx.value);
     //alert($v('P130_BPCD_LIST'));
   } else if(pCheckBx.checked == false){
     var l_exist = $v('P130_BPCD_LIST');
     var l_tmpexist = l_exist +':';
     l_search_str = ':'+pCheckBx.value+':';
     l_length = pCheckBx.value.length;
     l_pos = l_tmpexist.indexOf(l_search_str);
     

     var l_new1=l_exist.substr(0,l_pos);
     var l_start = l_pos + l_length + 1;
     var l_new2=l_exist.substr(l_start, l_exist.length - l_start);

     alert('Exist['+l_exist+'] New['+l_new1+'--'+l_new2+']');
     $s('P130_BPCD_LIST',l_new1+l_new2);
   } else {
      alert("PAGE 130:JAVASCRIPT:SHOULD NEVER GET THIS["+ pCheckBx.checked+']');
   }
   alert('Value['+pCheckBx.value+'] Exist['+$v('P130_BPCD_LIST')+']');
}
SOLUTION
leakim971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
BILL Carlisle

ASKER
ok, u made me realize I am using javascript not jQuery...

I can't get it going
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
leakim971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
BILL Carlisle

ASKER
Thanks a lot! Now I'm moving again...