• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

144
Vistas
How to remove Local Storage in another JS file

From below case, can someone help me to know how to remove localStorage which i have implemented below :

var serverSelectorDemo = function() {

         loadrightdata(); 
            function loadrightdata() {
                $('#kt_datatable_fetch_display2').html(localStorage.rightdata);
            };

        $('#kt_datatable2').on('click','tr button', function() {
            
           var id = $(this).data('id');
            $.ajax({
            type: 'post',
            url: 'src/khu-pusat/compare/right-side/right-value.php',
            data: {
                'rowid': id
            },
            success: function(data) {
            $('#kt_datatable_nodata2').addClass('hidden');
            localStorage.rightdata = data; 
             $('#kt_datatable_fetch_display2').html(localStorage.rightdata);
             return false;
            }
        });
    }).click(function() {
        $('#kt_datatable_fetch_display2').empty();
    });
    };

So far I can't find a way that can do this.

over 3 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda