I just got rid of unnecessary '(function($){ ' and it worked.

On Nov 5, 5:17 pm, vmrao <maheshpav...@gmail.com> wrote:
> Here is my code. I have included jQuery library.
>
> <script>
> (function($){
>         $(document).ready(function(){
>
>                 $('ul.News li[id*="Story"]').each(function() {
>                         alert('test');
>                 });
>         });});
>
> </script>
>
> <ul class="News">
> <li id="Story1">My Stroy1</li>
> <li id="Story2">My Stroy2</li>
> <li id="Story3">My Stroy3</li>
> <li id="Misc">Miscelaneous</li>
> </ul>

Reply via email to