tags:

views:

40

answers:

2
 <div class="divorder">     
     <table class="formfieldsmall">       
        <tr>
           <td style="width: 2%;">
               <img class="trigger" src="/SPLockerWebApp/Assets/themes/default/images/plus.png" />               
           </td>
        </tr>
     </table>
</div>

I need to change the image, but the following is not working in IE:

$(this).children()[0].children[0].all[2].src

Can anybody tell me the right option? I have bind click event on divorder.

$(this).next("trigger").src like this

+1  A: 
$(this).next("trigger").attr("src", "some/path/to/image.png");
Balon
+1  A: 

You might be better off using the find method

$('.divorder').click(function(){
  $(this).find('img.trigger').attr({src: 'some/image/path.png'});
});
czarchaic