Results 1 to 4 of 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Eclipse Plugin Developer aphex's Avatar
    Join Date: Mar:2003
    Location: Karlsruhe
    Posts: 546

    CheckBox- javascript.

    selectBox- . ?

    :
    Code:
    <form name="selection" action="Delete" method="post" onsubmit="warnBeforeDelete(this)">

    Code:
     function warnBeforeDelete(form){
    	if(confirm('Achtung! Sind Sie sicher, dass Sie die ausgew&#228;hlten Computer l&#246;schen m&#246;chten ?'))
    		return true;
    	else return false;
      }
    , ( / ).
    Last edited by aphex; 28th October 2010 at 21:10.
    We are drowning in information, but starving for knowledge and time!

  2. #2
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    ? onsubmit event , .
    JS - true confirm-a.
    jQuery -.

    :
    http://lab.artlung.com/validate-checkbox/
    ''? * *
    - !
    ...

  3. #3
    Eclipse Plugin Developer aphex's Avatar
    Join Date: Mar:2003
    Location: Karlsruhe
    Posts: 546
    CheckBox-. python . ? -.

    Update:
    Code:
    var inputs = document.getElementsByTagName("input");
            var count = 0;
    
            for (var i = 0; i < inputs.length; i++) {
                if (inputs[i].type == "checkbox" && inputs[i].checked) {
                    count++;
                }
            }
    Last edited by aphex; 28th October 2010 at 22:15.
    We are drowning in information, but starving for knowledge and time!

  4. #4
    Registered User
    Join Date: Jul:2005
    Location: Sofiq
    Posts: 2,798
    :

    Code:
    <form action="" method="post" onsubmit="return warnBeforeDelete(this);">
    Code:
    function warnBeforeDelete(form) {
    	var list = form.elements;
    	for(var i=0;i<list.length;i++){
    		if(list[i].type == 'checkbox' && list[i].checked === true) return true;
    	}
    	alert('No checkbox selected!');
    	return false;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |