reading index value of a table row with many cells and reading the value from it using Jquery -


postproperty postpay = "text">

  // PHP array $ Cashups = array (array ('cashup_id' => 146 ,456, 'DISPLAY_TIME' = & Gt; 'Mercury March 16th, 9:55 PM', 'terminal_name' => 'Bar 1', 'calculated_cash' => 389.20, 'actual_cash' => 374.6, 'calculated_tenders_total' = & Gt; 1,551.01, 'actual_tenders_total' => 1,551.01), array ('cashup_id' => 146,457, 'DISPLAY_TIME' => 'Mercury March 16th, 9:56 PM', 'terminal_name' = & Gt; 'Bar 2', 'calculated_cash' => 493.3, 'ActualCap' => 493.3, 'calculation_abhi =' gt 150 9.84, 'real_action' => 1509.84));   

HTML

  & lt ;? Php foreach ($ cash as $ cash) {? & Gt; & Lt; TR & gt; & Lt; Td square = "left" & gt; & Lt ;? Php echo $ cash ['display_time']; ? & Gt; & Lt; / TD & gt; & Lt; Td> & Lt ;? Php echo $ cash ['terminal_name']; ? & Gt; & Lt; / TD & gt; & Lt; Td> & Lt ;? Php echo number_ format ($ cash ['calcul_cash'], 2); ? & Gt; & Lt; / TD & gt; & Lt; Td class = "clickchange" & gt; & Lt; A href = "#" & gt; & Lt ;? Php echo number_format ($ cashup ['actual_cash'], 2); ? & Gt; & Lt; / A & gt; & Lt; / TD & gt; & Lt; Td> & Lt ;? Php echo number_format ($ cash ['count_th'], 2); ? & Gt; & Lt; / TD & gt; & Lt; Td> & Lt ;? Php echo number_ format ($ cash ['real_th'], 2); ? & Gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt ;? Php}? & Gt;   

Jquery

I am able to input the text box when clicking on link (click-change) with the help of a user sent on StackHowflow. I am not able to read the indexes of the links after being clicked. I would like to know how to implement each task to read indexed links. Once I read the inxies, I can update TD with their respective values.

Please help how do I read the text?

"itemprop =" text ">

I'm guessing you want to index when clicked clickChange Click on

  $ ("td.clickchange") (function {} {var i = $ (this) .parent ("tr") index (); ... warning (i );});    

Comments