Select And Deselect All Checkboxes By Javascript

CK CK 3788 
Created at
Updated at  
632 0 0

You can select and deselect all checkboxes by clicking two hyper
links(Select All and Deselect All).This type of functionality will be
needed some times in HTML table.

 

<!--if you have two hyperlinks like below-->
<A href="javascript:checkUncheck(true);">Select all</A>&nbsp;&nbsp;&nbsp;
<A href="javascript:checkUncheck(false);">Deselect all</A>
<!--then use this javascript to select all or to Deselect all-->

<script language="javascript">
    <!--
    function checkUncheck(yes) 
    {
        for (i = 0; i < document.forms[0].elements.length; i++) 
        {
                document.forms[0].elements[i].checked = yes;
        }
    }
    -->
</script>


 

Tags Deselect HTML Javascript Javscript Mouse Event Select getParameter Facebook X
Comments 0
Similar posts
  1. Javascript Mouse Event Handler Example
    403
  2. Getting WebSearchers On Your Site
    373
  3. Hiding HTML on the browser
    461
  4. How to get date time in Javascript ?
    498
  5. Javascript based Alarm Clock
    666
  6. Javascript implemented Calendar
    421
  7. Basic Date Display
    510
  8. Address Book
    576
  9. Displays the number of pages that the users browser has displayed in its session
    666
  10. Greeting For The Time Of Day
    393
  11. Access Granted
    586
  12. Cookie enabled browser checking in Javascript
    342
  13. Cookie Redirect
    496
  14. New content notifier in Javascript
    597
  15. Let popup once for event dialog or something like that in Javascript
    424
  16. Save And Restore Form Cookies in Javascript
    334
  17. How to record visitor's name by Cookie
    411
  18. Javascript & Cookie based Visitor Application
    435
  19. Cross Browser Event Management Functions Using JavaScript
    611
  20. Confirm The Link Clicked
    630
  21. Enlarge Image
    514
  22. Dual Scroller
    332
  23. Cursor Changer
    383
  24. Color Table
    365
  25. Printing A Page
    378
  26. Example Of Creating Objects
    402
  27. Linking Drop Downs
    576
  28. Roman Numerals From Integers
    511
  29. Get A Print Dialog Box By Clicking A Button
    818
  30. Keyboard event detection (Key Tracker)
    1,087
  1. Add A Scrolling Status Bar Text To Your Site
    408
  2. Add This Page To Favorites
    400
  3. Code To Clear Browser History
    375
  4. Remove the spaces before begin and after end of text
    336
  5. How To Close A Pop-up Window ?
    443
  6. Pop Up Window On Top
    516
  7. How to display message on browser status bar ?
    476
  8. New Window
    604
  9. Firefox Web Tweaking
    376
  10. Color Table
    365
  11. Cursor Changer
    383
  12. Dual Scroller
    332
  13. Enlarge Image
    514
  14. Confirm The Link Clicked
    630
  15. Send An Email Using A Bean
    1,015
  16. Javascript Mouse Event Handler Example
    403
  17. Getting WebSearchers On Your Site
    373
  18. Hiding HTML on the browser
    461
  19. jQuery and Function Chaining
    536
  20. How to get date time in Javascript ?
    498
  21. Javascript based Alarm Clock
    666
  22. Javascript implemented Calendar
    421
  23. Basic Date Display
    510
  24. Address Book
    576
  25. Displays the number of pages that the users browser has displayed in its session
    666
  26. Greeting For The Time Of Day
    393
  27. Access Granted
    586
  28. Cookie enabled browser checking in Javascript
    342
  29. Cookie Redirect
    496
  30. New content notifier in Javascript
    597
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    39
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    34
  3. How do I create animated background for Google Meet?
    20,611
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    244
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    94
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    157
  7. Array of arguments passed to script in PHP
    90
  8. Invalid Auction Storms in Ad Tech
    98
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    202
  10. The Two Clocks of Ad Server Architecture
    70
  11. Frequency Cap Architecture Overview
    514
  12. Collecting Proof-of-Play from 100,000 Screens
    146
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    287
  14. What is RedisVL?
    109
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    230
  16. TPU & GPU Cluster Management Tools
    243
  17. The Concept of Scaffolding in AI Agents
    233
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    583
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    258
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    339
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    202
  22. Machine Learning: Training vs. Ranking
    221
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    222
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    195
  25. Designing a Data Curation System Around a Vector Database
    220
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    256
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    656
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    195
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    216
  30. Understanding Data Lineage
    260