Cibiņš Posted December 26, 2011 Report Share Posted December 26, 2011 (edited) Kā lai izveido: status.text('Atļauti IR tikai JPG, PNG or GIF faili'); lai izvada smuku erroru? Tas ir - status.text('<div class="kludaszinja"><img src="error_checkmark_red.png" width="19" height="19" alt="err_green" style="position: absolute; margin-left: -25px; margin-top: -1px;" />Atļauti IR tikai JPG, PNG or GIF faili</div>'); lapā izvadās kā teksts: <div class="kludaszinja"><img src="error_checkmark_red.png" width="19" height="19" alt="err_green" style="position: absolute; margin-left: -25px; margin-top: -1px;" />Atļauti IR tikai JPG, PNG or GIF faili</div> nevis kā smuks cssā stilizēts kļūdas bloks :( Edited December 26, 2011 by Cibiņš Link to comment Share on other sites More sharing options...
0 daGrevis Posted December 26, 2011 Report Share Posted December 26, 2011 text() vietā ir jāizmanto html(). Link to comment Share on other sites More sharing options...
0 Cibiņš Posted December 26, 2011 Author Report Share Posted December 26, 2011 Paldies :) Link to comment Share on other sites More sharing options...
Question
Cibiņš
Kā lai izveido:
lai izvada smuku erroru?
Tas ir -
lapā izvadās kā teksts:
<div class="kludaszinja"><img src="error_checkmark_red.png" width="19" height="19" alt="err_green" style="position: absolute; margin-left: -25px; margin-top: -1px;" />Atļauti IR tikai JPG, PNG or GIF faili</div>
nevis kā smuks cssā stilizēts kļūdas bloks :(
Edited by CibiņšLink to comment
Share on other sites
2 answers to this question
Recommended Posts