From d9b6e39e942b0a8a33138cff3c0c57547538e0f3 Mon Sep 17 00:00:00 2001 From: DrMadWill <87474631+DrMadWill@users.noreply.github.com> Date: Fri, 26 Nov 2021 17:37:49 +0400 Subject: [PATCH] JavaScript > JQuery > Click Event --- 11_Slider_App/Js/30_11_4_Slider_Duration.js | 2 ++ 12_JQery/35_12_5_ClickEvent.js | 16 ++++++++++++++++ 12_JQery/BasicHtml/index.html | 9 +++++++-- Documantation/12_JQuery/documantation.md | 20 ++++++++++++++++++-- README.md | 4 +++- 5 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 12_JQery/35_12_5_ClickEvent.js diff --git a/11_Slider_App/Js/30_11_4_Slider_Duration.js b/11_Slider_App/Js/30_11_4_Slider_Duration.js index 348fa55..e5d8534 100644 --- a/11_Slider_App/Js/30_11_4_Slider_Duration.js +++ b/11_Slider_App/Js/30_11_4_Slider_Duration.js @@ -110,3 +110,5 @@ function inits(setting){ + + diff --git a/12_JQery/35_12_5_ClickEvent.js b/12_JQery/35_12_5_ClickEvent.js new file mode 100644 index 0000000..0512d71 --- /dev/null +++ b/12_JQery/35_12_5_ClickEvent.js @@ -0,0 +1,16 @@ + +$(document).ready(function () { + $("ul li:first-child").text("Click me") + $("ul li:first-child").click(function (w){ + w.target.className="btn bg-danger" + $(this).text("You Click me you will be dead") + }) + + +}); + +$(function(){ + $("img").click(function(w){ + w.target.className="w-50" + }) +}) \ No newline at end of file diff --git a/12_JQery/BasicHtml/index.html b/12_JQery/BasicHtml/index.html index 5a9439b..1e3acb3 100644 --- a/12_JQery/BasicHtml/index.html +++ b/12_JQery/BasicHtml/index.html @@ -16,7 +16,9 @@
-