Hey,

this is the code that works perfectly to show all XML Elements:

                        $.ajax({
                                type: "GET",
                                url: "events.xml",
                                dataType: "xml",
                                success: function(xml) {
                                        $(xml).find('event').each(function(){
                                                var name = $(this).attr('name');
                                                $('<option 
value="'+name+'"></option>').html(name).appendTo
('#select_event');
                                        });
                                }
                        });

Now, i only want to show the elements where the event attribute name
is like "test".

Thanks in advance for your help

Florian

Reply via email to