im wriging this here to show you how you can match all divs matching a wild card

for example, lets say i want to show an alert on all Divs that end or start with MyDiv value, here is how i would do it:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Wild Card Jquery by</title>
<script src="" type="text/javascript"></script>
$(function (){
$('[id*="WildCard"]').click(function () {
alert('You Clicked '+ $(this).attr('id') );
<div id="WildCard1" >Click to see WildCard1</div>
<div id="WildCard2" >Click to see WildCard2</div>