{"id":22327642,"url":"https://github.com/saip13/jquery-events-functions","last_synced_at":"2026-05-07T15:40:05.790Z","repository":{"id":110406411,"uuid":"433690435","full_name":"SaiP13/jquery-events-functions","owner":"SaiP13","description":"All jQuery Functions and Events","archived":false,"fork":false,"pushed_at":"2022-03-25T12:15:31.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T00:58:53.055Z","etag":null,"topics":["javascript","jquery","jquery-ajax","jquery-validation"],"latest_commit_sha":null,"homepage":"https://saip13.github.io/jquery-events-functions/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaiP13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-01T05:06:48.000Z","updated_at":"2022-03-09T05:01:38.000Z","dependencies_parsed_at":"2023-12-23T10:37:30.784Z","dependency_job_id":null,"html_url":"https://github.com/SaiP13/jquery-events-functions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SaiP13/jquery-events-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaiP13%2Fjquery-events-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaiP13%2Fjquery-events-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaiP13%2Fjquery-events-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaiP13%2Fjquery-events-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaiP13","download_url":"https://codeload.github.com/SaiP13/jquery-events-functions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaiP13%2Fjquery-events-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32744309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","jquery","jquery-ajax","jquery-validation"],"created_at":"2024-12-04T03:10:04.883Z","updated_at":"2026-05-07T15:40:05.749Z","avatar_url":"https://github.com/SaiP13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery-events-functions\nAll jQuery Functions and Events\n\u003ca href=\"https://saip13.github.io/jquery-events-functions/\" target=\"_blank\"\u003e https://saip13.github.io/jquery-events-functions/ \u003ca\u003e\n\u003chr\u003e\n\u003ch2\u003eIndex\u003c/h2\u003e\n    \u003ca href=\"#SELECTORS\"\u003eSELECTORS\u003c/a\u003e\u003cbr\u003e\n    \u003ca href=\"#VALUES\"\u003eGETTING VALUES\u003c/a\u003e\u003cbr\u003e\n    \u003ca href=\"#EVENTS\"\u003eEVENTS\u003c/a\u003e\u003cbr\u003e\n    \u003ca href=\"#VALIDATIONS\"\u003eVALIDATIONS\u003c/a\u003e\u003cbr\u003e\n    \u003ca href=\"#VALIDATIONS\"\u003eVALIDATIONS\u003c/a\u003e\u003cbr\u003e\n\n\u003cbr\u003e\u003chr\u003e\n\u003cspan id='SELECTORS'\u003eSELECTORS\u003c/span\u003e:\n\n    1) #using class name   :     $('.class_name')\n    2) #using ID name      :     $('#id_name')\n    3) #uing tag name      :     $('tagname')\n    4) #using ele \u0026 class  :     $(\"p.class_name\")\n    5) #all elements       :     $(\"a[href]\") || $(\"a[target='_blank']\") || $(\":button\")\n\n\u003cspan id='VALUES'\u003eGETTING VALUES:\u003c/span\u003e\n\n    1) var x = $(\"#id_name\").val();\n    2) var x = $(\".class_name\").val();\n    3) var x = $(this).val();\n    4) var x = $(this).attr('attribute-name');\n    5) var str = $(\"form\").serialize(); || $(this).serialize();\n    6) var checked_val = $(\"input:checkbox[name=check_coll]:checked\").val(); #checkbox value\n    7) var radio_val = $(\"input:radio[name=status]:checked\").val(); #radio value\n    8) var x = $(\"input:checkbox\").val();\n    9) $('#id').each(function(){ var x = $(this).val(); });\n    10) $('.class').each(function(){ var x = $(this).val(); });\n\n\u003cspan id='EVENTS'\u003eEVENTS:\u003c/span\u003e\n\n    #MOUSE EVENTS:\n        \n        \u003c!-- Click Statrt --\u003e\n        1) $(\"#id\").click(function(){ }); #using id name\n        2) $(\".class_name\").click(function(){ }); #using class name\n        3) $(document).on(\"click\", \".edit_listcontact\", function(){ }); #using class name\n        4) $(document).on(\"click\",\"#upd_user_info_btn\",function(){ });  #using id name\n        \u003c!-- Click End --\u003e\n\n        \u003c!-- Double Click --\u003e\n        1) $(\"p\").dblclick(function(){ });\n        2) $(\"#id\").dblclick(function(){ });\n        3) $(\".class\").dblclick(function(){ }); \n        \u003c!-- Double Click End --\u003e\n\n        \u003c!--  Mouse Enter --\u003e\n        1) $(\"p\").mouseenter(function(){ });\n        2) $(\"#id\").mouseenter(function(){ });\n        3) $(\".class\").mouseenter(function(){ }); \n        \u003c!--  End Mouse Enter --\u003e\n\n        \u003c!--  Mouse leave --\u003e\n        1) $(\"p\").mouseleave(function(){ });\n        2) $(\"#id\").mouseleave(function(){ });\n        3) $(\".class\").mouseleave(function(){ }); \n        \u003c!--  End Mouse Leave --\u003e\n\n        \u003c!--  Mouse Down --\u003e\n        1) $(\"p\").mousedown(function(){ });\n        2) $(\"#id\").mousedown(function(){ });\n        3) $(\".class\").mousedown(function(){ }); \n        \u003c!--  End Mouse Down --\u003e\n\n        \u003c!--  Mouse leave --\u003e\n        1) $(\"p\").mouseup(function(){ });\n        2) $(\"#id\").mouseup(function(){ });\n        3) $(\".class\").mouseup(function(){ }); \n        \u003c!--  End Mouse Leave --\u003e\n\n        \u003c!-- Hover --\u003e\n        1) $(\"p\").hover(function(){ });\n        2) $(\"#id\").hover(function(){ });\n        3) $(\".class\").hover(function(){ }); \n        \u003c!--  End Hover --\u003e\n\n    #FORM EVENTS:\n    \n        \u003c!-- Form submit --\u003e\n        1) $(\"form\").submit(function(){ });\n        2) $(\"#form_id\").submit(function(){ });\n        3) $(\".form_class\").submit(function(){ }); \n        \u003c!-- End Submit --\u003e\n\n        \u003c!-- Change --\u003e\n        # when an input field is changed || value enter and remove\n        1) $(\"input\").change(function(){ });\n        2) $(\"#input_id\").change(function(){ });\n        3) $(\".input_class\").change(function(){ }); \n        \u003c!-- End Change --\u003e\n\n        \u003c!--  Focus --\u003e\n        #when the form field gets focus || enter into form input filed\n\n        1) $(\"input\").focus(function(){ });\n        2) $(\"#id\").focus(function(){ });\n        3) $(\".class\").focus(function(){ }); \n        \u003c!--  End Focus --\u003e\n\n        \u003c!--  Blur --\u003e\n        #when the form field lose focus || leave form input filed\n\n        1) $(\"input\").blur(function(){ });\n        2) $(\"#id\").blur(function(){ });\n        3) $(\".class\").blur(function(){ }); \n        \u003c!--  End Blur --\u003e\n    \n    #KEYBOARD EVENTS:\n\n        \u003c!-- Key Down --\u003e\n        # when \u003cinput\u003e field when a keyboard key is pressed down.\n\n        1) $(\"input\").keydown(function(){ });\n        2) $(\"#input_id\").keydown(function(){ });\n        3) $(\".input_class\").keydown(function(){ }); \n        \u003c!-- End Key Down --\u003e\n\n        \u003c!-- Key Up --\u003e\n        # when an \u003cinput\u003e field when a keyboard key is released.\n\n        1) $(\"input\").keyup(function(){ });\n        2) $(\"#input_id\").keyup(function(){ });\n        3) $(\".input_class\").keyup(function(){ }); \n        \u003c!-- End Key Up --\u003e\n\n        \u003c!-- Key Press --\u003e\n        # when \u003cinput\u003e field when a keyboard key is pressed.\n\n        1) $(\"input\").keypress(function(){ });\n        2) $(\"#input_id\").keypress(function(){ });\n        3) $(\".input_class\").keypress(function(){ }); \n        \u003c!-- End Key Press --\u003e\n        \n    #MULTIPLE EVENTS AT A TIME:\n    \n        \u003c!-- on --\u003e\n        1) $(\"input\").on('click','blur', function(){ });\n        2) $(\"#input_id\").on('keypress','hover', function(){ });\n        3) $(\".input_class\").on('keypress','hover',function(){ });\n        4) $('#account_id').on('change', function () { });\n        5) $(document).on(\"keyup\",\"#id-name\",function(){});\n        5) $(document).on(\"keyup\",\".class-name\",function(){});\n        7) $(\"selector\").on({  \n                        mouseenter: function(){ $(this).css(\"background-color\", \"lightgray\"); },\n                        mouseleave: function(){ $(this).css(\"background-color\", \"lightblue\"); }, \n                        click: function(){ $(this).css(\"background-color\", \"yellow\"); }\n                    });\n        \u003c!-- end on --\u003e\n        \n\t\n\u003cspan id='VALIDATIONS'\u003eVALIDATIONS:\u003c/span\u003e \n    \n    #Empty Check:\n    \n        var xid = $(\"#id\").val();\n        if((xid == 0) || (xid == '') || (xid == undefined) || (xid == null)){\n            alert('empty');\n        }\n\n    #ALLOW ONLY NUMBERS:\n    \n        $(document).on(\"keyup\",\".allowNumOnly\",function(){\n            var val = $(this).val();\n            if(isNaN(val)){\n                val = val.replace(/[^0-9\\.]/g,'');  \n            }\n            $(this).val(val); \n        });\n\n    #Mail Validation:\n    \n        var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;   \n        if(emailReg.test(mail) ){\n            alert(\"Valid\");\n        } else {\n            alert(\"Invalid\");\n        }\n\n    #Mobile Validation:\n    \n        var mobile = $(\"#mobile\").val();\n        var filter = /^\\d*(?:\\.\\d{1,2})?$/; || var NumberRegex = /^[0-9]*$/;\n        if (mobile.test(filter) \u0026\u0026 mobile.length == 10) {\n            alert(\"Valid\");\n        } else {\n            alert(\"Invalid\");\n        }\n\n    #Validate Dynamic Fileds(Multiple):\n    \n        var primary_numbers = [];\n\t\t$(\"input[name='primary_mobile[]']\").each(function() {\n\t\t\tvar value = $(this).val();\n\t\t\tprimary_numbers.push(value);\n\t\t\tif(value == \"\"){\n\t\t\t\talert(\"Mobile number should not be empty\");\n\t\t\t} else if(value != '') {\n\t\t\t\tif(value.length \u003c 10){\n\t\t\t\t\talert(\"Mobile number should be 10 digit\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif(primary_numbers != \"\"){\n\t\t\tduplicateNumber = primary_numbers.some((element, index) =\u003e {\n\t\t\t\treturn primary_numbers.indexOf(element) !== index\n\t\t\t});\n\t\t\tif(duplicateNumber){\n\t\t\t\talert(\"Duplicate numbers should not be allowed!\");\n\t\t\t}\n\t\t}\n\n    #Checkbox Validation:\n    \n            if(($('.is_primeMobile:radio:checked').length == 0)){\n                    alert(\"Please select atleast one primary number\");\n            }\n        \n        \n   \u003cbr\u003e\u003chr\u003e\n    \n    \u003c!--  !! Keep Updated !! HappY Coding  !!  --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaip13%2Fjquery-events-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaip13%2Fjquery-events-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaip13%2Fjquery-events-functions/lists"}