Help me with prev();
Help me with prev();
Hi dudes.
Someone help me with this code:
- var iconesObrigatorios = $("img[id$='_icone']");
- iconesObrigatorios.each
- (
- function()
- {
- var idLabel = jQuery(this).attr('id');
-
- idLabel = idLabel.substr(0,idLabel.indexOf('_icone', 0) );
- idLabel = idLabel.replace(/:/g, '\\:');
- // i guess the error is here!!!
- $('#' + idLabel).parents('span.p_AFRequired').prev(this).append(this)
- $(this).css('float','right');
- }
- )
and the html code is:
- <td class="celularFormulario">
- <span class="af_AFRequired" style="float: left;">
- <table>
- <tbody>
- <tr>
- <td>
- <img src...
Why when i execute this code the image show style='float:right' ?
I need the TD with this style.
Help me please.
Ty dudes!