Suppose we have five divs and  having ids like this
1) divId_1
2) divId_2
4) divId_3
5) divId_4
6) divId_5
than how I can apply onclick event for div's which would work for all the div's using javascript in jquery I am sure how to achieve this but not sure how to do this javascript .
like in jquery we can do as below
$('[id^="divId_"]').click(function(){
})
same how we can achieve in javascript .
 
     
     
    