Javascript
Jquery harici dosyaya bağlanma

js klasörüne harici.js adında dosya oluşturarak javascript kodlarını buraya yazın.
<html> <head> <title> Jquery harici dosyayı import etme </title> <!-- LOCAL DEN IMPORT ETME 1.YOL !--> <script type="text/javascript" src="js/jquery-3.3.1.min.js"> </script> <!-- CDN Uzaktan IMPORT ETME 2.YOL <script src="https://code.jquery.com/jquery-3.3.1.js"></script> !--> <!-- HARİCİ DOSYA YOLU !--> <script type="text/javascript" src="js/harici.js"> </script> </head> <body> <p>deneme1 buraya tıkla ve sil test et</p> <p>deneme2 buraya tıkla ve sil test et</p> <p>deneme3 buraya tıkla ve sil test et</p> <p>deneme4 buraya tıkla ve sil test et</p> </body> </html>
harici.js Kodları
$(document).ready(function() { $("p").click(function() { $(this).hide(); }); });