Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

uncheck checkbox when another is checked javascript

<input id="cbxBirthDate" type="checkbox" onClick="javascript:uncheckShowYear(this);" />
<input id="cbxShowYear" type="checkbox" />


<script language="javascript" type="text/javascript">
function uncheckShowYear(obj)
        {
            if (obj.checked == false)
            {
                document.getElementById("cbxShowYear").checked = false;
            }
        }
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: js loop through object keys 
Javascript :: upload excel file using jquery ajax 
Javascript :: regex all 
Javascript :: disable button 
Javascript :: strpos in javascript 
Javascript :: reverse array javascript 
Javascript :: cors in node js 
Javascript :: how to destroy cookie in javascript 
Javascript :: how to open print dialog box on button click 
Javascript :: react prevent form submission on enter key press inside inputs 
Javascript :: how to iterate array in javascript 
Javascript :: o que é jsonm 
Javascript :: append line break javascript 
Javascript :: nextjs open browser automatically 
Javascript :: js new array from new set 
Javascript :: how to seperate words seperated by commas using javascript 
Javascript :: join 2 array in javascript 
Javascript :: how to remove last index of array in javascript 
Javascript :: render XML in node 
Javascript :: get random element from string array java 
Javascript :: user icon discord js 
Javascript :: array.from foreach 
Javascript :: skip arguments in js 
Javascript :: sequelize migration set unique constraint 
Javascript :: loop an audio javascript 
Javascript :: how to clear an input in testing library 
Javascript :: react declare multiple states 
Javascript :: react native text style example 
Javascript :: node.js name of file 
Javascript :: get zipcode from google places autocomplete 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =