Hi friends
i am having n number check box, if i checked one check box it has to select all the similar values of the check box and the other check box should be disable.
can any one help me to solve the issue
i am having a java script for select similar values selection
<script type='text/javascript'>
(function()
{
var allInps = document.getElementsByTagName('input'), allCb = [];
for( var i in allInps )
if( allInps[ i ].type === 'checkbox' )
{
allCb.push( allInps[ i ] );
allInps[ i ].onclick = likeMe;
}
function likeMe()
{
for( var i in allCb )
if( allCb[ i ] !== this && allCb[ i ].value === this.value )
allCb[ i ].checked = this.checked;
}
})();
</script>