MY Programming Notes for current New We'll see if I can keep this going. //jQuery //------------------------------------------------------ $(document).ready(function(){ all code }); // Check boxes use properties -- to check or uncheck checkboxes $("#myCheck"). prop("checked", true); // check check box with ID = mycheck $("#myCheck"). prop("checked", false); // uncheck checkbox with ID = mycheck // select all with the same name and not checked. gall = $("input[name=tcheck]").prop("checked",false); // // select all elements named tcheck that are checked var boxes = $('input[name=tcheck]:checked'); // get array called boxes boxes.each(function(){ // use each to loop through var j = $(this).val(); // check box values are set to colorado ... if(j == "colorado") {} if(j == "larimer") {} if(j == "City") {} if(j == "indiana") {} }); $(":checked") // The :checked selector selects all checked checkboxes or radio buttons. // how to select all named tcheck var boc = $('input[name=tcheck]'); // the asterisk is if "tcheck" is in the name as in cbtcheck var boc = $('input[name*=tcheck]'); // .each is cool like Perl boc.each(function(){ $(this).show(); }); // very cool method to repost form data // look em up!
"> "> // key functions are htmlspecialchars() and $_SERVER["PHP_SELF"]; //also this method looks for POST then it know the form has just been submitted. if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = test_input($_POST["name"]); $email = test_input($_POST["email"]); $website = test_input($_POST["website"]); $comment = test_input($_POST["comment"]); $gender = test_input($_POST["gender"]); } // jQuery how to select table class tr or td. for css and others $(".mytable tr").ccs("background", "blue"); $(".mytable td").ccs("background", "blue"); // just like normal css //------------------------------------------------- // HTML5 // input tag // cool kind of regular expression matching with error note // used to validate from input = = how to change error message //------------------------------------------------- also // | = or
also //? means last char maybe
also // * means 0 or more - oooooo also // * means 1 or more - oooooo // normal reg expressions . matches any char [A_Z] matches A through Z [a-z] matches a through z [0-9] matches 0 through 9
Country code:
//------------------------------------------------- // contententeditable = true does not save changes needs code to do that. Still kind of useful maybe.

Hi this is an edititable paragraph

this is styling the tag <thisyo> hey you - over there?