joyacv2
asked on
jQuery move one up and then one right
Hi,
I have the following table:
then have the following code:
i need to obtain the value "director" to the console log. I try using $(this). with parent() and children() and eq() in many combinations but i don't know how to reach the value inside this td. Is like move one up to the td and then obtain the value of the adjacent td. Any idea?
I have the following table:
<tr><td class="colorFondoYCentrado"><input class="nombres" type="text" placeholder="NOMBRE"></td>
<td class="colorFondoYCentrado">director</td><tr>
then have the following code:
$('.nombres').focusout(function(){
console.log(...)
})
i need to obtain the value "director" to the console log. I try using $(this). with parent() and children() and eq() in many combinations but i don't know how to reach the value inside this td. Is like move one up to the td and then obtain the value of the adjacent td. Any idea?
ASKER
Hi,
can you provide a solution without using the class of colorFondoYCentrado? because maybe i will not use this class
can you provide a solution without using the class of colorFondoYCentrado? because maybe i will not use this class
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
WORKS PERFECT!
please try this:
Open in new window
HTHRainer