I update a js file on the server but then the file still appears the same [closed]

0

Hello with the filezilla I have updated a javascript file but then in the console the same error appears and the file appears the same. I'm using wordpress, but I do not think that's the problem, I've closed and reopened the firefox and nothing the same.

I have copied the file from the server to local and it is with the changes in the code.

the error is TypeError: name.val is not a function [Read more]

this is the line

if((document.getElementById("nombre").value.length < 4) || (correo.value.length < 4)|| (mensaje.value.length < 6))

but the console shows up

if((nombre.val().length < 4) || (correo.val().length < 4)|| (mensaje.val().length < 6))
    
asked by Rafael Hernández 08.01.2017 в 12:12
source

1 answer

1

It is common to have cached in Mozilla FireFox or Google Chrome. You can solve the problem in two different ways.

  • Forcing the reload in the web browser (Mozilla FireFoz or Google Chrome) using Ctrl + F5. Many times this method does not work, so I resorted to method 2.
  • Clear the browser cache, deleting in your history. It does not need to be for the entire period, only for the last few hours.
  • Another way is to enter private or incognito mode of your browser. Try with Google Chrome and then with Mozilla Firefox.
  • answered by 08.01.2017 / 12:46
    source