Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom. Pra variar um problema com o IE. Testei no Opera, Safari, Chrome e Firefox, tudo Ok, agora no maldito IE não!!!
por favor me ajudem a identificar algum erro!
$(document).ready(function(){
$('#fitem_id_newpassword2').append("<div class='fitemtitle' style='margin-top:5px'><label for='id_newemail'>E-mail<img class='req' title='Required field' alt='Required field' src='http://localhost/moodle/theme/image.php?theme=afterburner&component=core&image=req' /> </label></div><div class='felement fpassword' style='margin-top:5px'><input autocomplete='off' name='id_newemail' type='email' required id='id_newemail' /><input id='iduser' type='text' style='opacity:0.0'></div></div>");
$('legend').empty();
$('legend').append('<?php $titulo = utf8_encode("Mudança de senha e e-mail"); echo $titulo; ?>');*/
$('#id_submitbutton').click(function(){
if ($('#id_newemail').val()=="" || $('#id_newemail').val().length > 40 || $('#id_newemail').val().length < 6 || $('#id_newemail').val().indexOf('@')==-1 || $('#id_newemail').val().indexOf('.')==-1 )
{
alert( "Preencha o campo E-MAIL corretamente!" );
$('#id_newemail').focus();
return false;
}
else { return true; }
});
});
resolvido. O IE encrencou com uma tag de fechamento de div a mais dentro do append. vai entender...
Carregando comentários...