google+javascriptbanktwitter@js_bankfacebook@jsbankrss@jsbank






Efficace et utile JavaScript/jQuery Trucs et astuces Cette libre de HTML JavaScript tutorial fournit 45 + JavaScript/jQuery conseils et astuces qui vous aideront


Étiquette: d'

Gratuit iPage hébergement Web pour la première année MOMENT



Si vous êtes toujours à la recherche d'un fournisseur d'hébergement Web fiable avec des tarifs abordables, pourquoi vous ne prenez pas un peu de temps pour essayer iPage, seulement avec $1.89/month, inclus $500+ Crédits supplémentaires gratuites pour le paiement de 24 mois ($45)?

Plus de 1.000.000 de clients + existisng peuvent pas avoir tort, vraiment vous n'êtes pas aussi! Plus important encore, lorsque vous enregistrez l'hébergement web à iPage grâce à notre lien, nous allons être heureux de renvoyer un plein remboursement. C'est génial! Vous devriez essayer iPage hébergement web GRATUITEMENT maintenant! Et contactez-nous pour tout ce que vous devez savoir sur iPage.
Essayez iPage GRATUIT première année MOMENT
  • Moving options from list A to list B
  • 1.$().ready(function() {
    2.    $('#add').click(function() {
    3.        !$('#select1 option:selected').appendTo('#select2');
    4.    });
    5.    $('#remove').click(function() {
    6.        !$('#select2 option:selected').appendTo('#select1');
    7.    });
    8.});
  • Select all checkboxes
  • 1.$(document).ready(function(){
    2.    $("#checkboxall").change(function(){
    3.        var checked_status = this.checked;
    4.        $("input[name=checkall]").attr("checked", checked_status);
    5.    });
    6. 
    7.});
  • Get the current URL
  • 1.$(document).ready(function() {
    2.    var pathname = window.location.pathname;
    3.});
  • Check if and which key was pressed
  • 01.$(function() {
    02.    $(document).keypress(function(e){
    03.        switch(e.which){
    04.        // "ENTER"
    05.        case 13:
    06.        alert('enter pressed');
    07.        break;
    08. 
    09.        // "s"
    10.        case 115:
    11.        alert('s pressed');
    12.        break;
    13. 
    14.        (...)
    15. 
    16.        }
    17.    });
    18. 
    19.});
  • How to hide all children div except a specific one with jQuery?
  • 1.$('#target div:not(#exclude)').hide();
    2.//or
    3.$('#target').children().filter(':not(#exclude)').hide();
  • Detecting when a div's height changes using jQuery
  • 1.$('element').bind('resize', function(){
    2.alert( 'Height changed to' + $(this).height() );
    3.}
  • Delete all table rows except first
  • 1.$('someTableSelector').find('tr:gt(0)').remove();
  • Selecting root element of a certain level in the document
  • 1.1 level:
    2.$('*:not(* *)');
    3.2 level:
    4.$('*:not(* *)').find('> *');
    5.3 level:
    6.$('*:not(* *)').find('> * > *');
  • Searching a string in jQuery
  • 1.var foundin = $('*:contains("some string bla bla")');
  • Get the distance scrolled from top
  • 1.alert($(document).scrollTop());
    iPhoneKer.com
    Save up to 630$ when buy new iPhone 15

    GateIO.gomymobi.com
    Free Airdrops to Claim, Share Up to $150,000 per Project

    https://tooly.win
    Open tool hub for free to use by any one for every one with hundreds of tools

    chatGPTaz.com, chatGPT4.win, chatGPT2.fun, re-chatGPT.com
    Talk to ChatGPT by your mother language

    Dall-E-OpenAI.com
    Generate creative images automatically with AI

    AIVideo-App.com
    Render creative video automatically with AI

    JavaScript par jour


    Google Safe Browsing McAfee SiteAdvisor Norton SafeWeb Dr.Web