Jump to content
Sign in to follow this  
Portocala

Script jquery nu merge pe localhost!?

Recommended Posts

Salut, am gasit si eu acest cod pentru filtrarea unor rezultate http://codepen.io/javve/pen/cLdfw

Totul bine si frumos pana il trec intr-un index.html in pc pe localhost, nu merge nimic, e ca si cum nu ar functionat JS-ul

Am incercat sa urc si pe un host si tot nu merge.

Share this post


Link to post
Share on other sites

Trebuie sa dai import la libreria jQuery. In head adauga:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Share this post


Link to post
Share on other sites

Ai luat tot codu ala HTML cap coada?

Verifica consola de JS daca apare vro eroare, apasa F12 si dupa dute la "Console" si vezi daca apare ceva.


PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Share this post


Link to post
Share on other sites

Ai luat tot codu ala HTML cap coada?

Verifica consola de JS daca apare vro eroare, apasa F12 si dupa dute la "Console" si vezi daca apare ceva.

E copy/paste, in cea ce priveste consola, nici o eroare

Share this post


Link to post
Share on other sites

La codu JS ai adaugat si un load la JS odata ce s-a incarcat pagina cu una dintre optiunile care are jQuery pentru load? Daca nu, adauga tot codu JS intre:

$(function() {
/* Codu JS aici */
});

https://learn.jquery.com/using-jquery-core/document-ready/


PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Share this post


Link to post
Share on other sites

La codu JS ai adaugat si un load la JS odata ce s-a incarcat pagina cu una dintre optiunile care are jQuery pentru load? Daca nu, adauga tot codu JS intre:

$(function() {
/* Codu JS aici */
});

https://learn.jquery.com/using-jquery-core/document-ready/

Mersi +3 :D

Share this post


Link to post
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
Reply to this topic...

×   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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...