Jump to content
php.lv forumi
  • 0

Rada tikai vienu tekstu


false

Question

<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
 $(".forgot-password").find("input[type=button]").click(function(){
  var $v = $(".forgot-password").find("input[type=text]").val();
  if($v.length>2){
   $(".forgot-password").append("<div id='error-console'></div>");
   $("#error-console").css({display : 'none'}).html("Uzgaidiet").fadeIn('slow',function(){
    $.get('fpw.php',{ c : 1, hdm : $(".forgot-password").find("input[type=text]").val() }, function(d){
     if(d=='0x0'){
      $("#error-console").fadeOut('slow',function(){
       $(this).text("Nav reģistrēta šāda nika vai e-pasta").fadeIn('slow',function(){
        setTimeout('$("error-console").fadeOut("slow",function(){$(this).remove();});',2500);
       });
      });
     }else if(d=='0x1'){
      $(".forgot-password").html('Uz tavu e-pastu tika nosūtīta jaunā parole');
     }else{
      $("#error-console").css({display : 'none'}).html("Koda kļūda").fadeIn('slow',function(){
       setTimeout('$("error-console").fadeOut("slow",function(){$(this).remove();});',2500);
      });
     }
    });
   });
  }
 });
});
</script>
</div>

Bet visu laiku rada Koda kļūda

Kas par vainu?

 

p.s

tajos javascriptos nemāku neko..

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Nu pirmā rindiņa - kā redzi - $(function(){

 

Nesaprotu, ko tu ar to esi domājis...

 

Nezinu, vai tā ir kļūda, bet ja tu filtrē pēc atribūtiem, tad atribūta vērtība ir jāliek pēdiņās

 

$(".klase[atributs=vertiba]")

Edited by briedis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...