Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Prototype To JQuery

    Hello,

    I started my project I used in the prototype. But then the was problem.
    I can not do have a (Prototype)function. How do I turn the JQuery code
    below ?

    Code:
    function deleteBatch(_21){
    var ids=[];
    var _23=[];
    $(".questionCheckbox").each(function(_24){
    if(_24.checked){
    ids.push(_24.value);
    _23.push($("#question"+_24.value).find("h4"));
    }
    });
    if(!ids.length){
    alert("Lütfen soru seçiniz");
    return;
    }
    _23.each(function(_25){
    _25.removeClass("highlightYellow");
    _25.addClass("highlightRed");
    });
    if(!confirm("Bu içeriği silmek istediğinizden emin misiniz ? Zira bu işlem geri alınamaz.")){
    _23.each(function(_26){
    _26.removeClass("highlightRed");
    _26.addClass("highlightYellow");
    });
    return;
    }
    $("#deleteBatchButton").disabled=true;
    $("#batchIndicator").show();
    deleteQuestions(ids.join(","),_21);
    };
    Sincerely,
    Samet ARAS.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You'll probably have to go back to the drawing board.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •