UL subdrop not working with jquery in Asp Net C

0 votes

Keep searching why sub drop not working with ajax.. Menu is showing but when i click the menu the sub menu is was not displaying.

            $.ajax({
                url: '../url',
                dataType: "json",
                data: { data},
                method: 'post',
                success: function (data) {
                    var html, ul_menu = ''
                    ul_menu = $('#ul-menu');
                    $(data).each(function (index, menu) {
                        html = ''
                            + '<li class="has_sub">'
                                + '<a href="javascript:void(0);" class="waves-effect"><i class="mdi mdi-album"></i> <span> Menu </span> <span class="float-right"><i class="mdi mdi-plus"></i></span></a>'
                                + '<ul class="list-unstyled">'
                                    + '<li><a href="index.html?sys=hris&mod=human-resource&sub=man-power-request">Sub Menu 1</a></li>'
                                    + '<li><a href="ui-components.html">Sub Menu 2</a></li>'
                                + '</ul>'
                            + '</li>';
                        ul_menu.append(html);
                    });
                }
            });

Please help Thanks

Jul 29, 2022 in Web Development by gaurav
• 23,260 points
357 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Web Development

0 votes
0 answers
0 votes
1 answer

Loading gif in jQuery ajax call is not showing

Create a div with your image. Make it ...READ MORE

answered Jun 27, 2022 in Web Development by rajatha
• 7,680 points
1,656 views
0 votes
0 answers

Jquery array.push() not working

I have been trying to add variables ...READ MORE

Jul 1, 2022 in Web Development by gaurav
• 23,260 points
1,641 views
0 votes
0 answers

jQuery exclude elements with certain class in selector

I want to setup a click event ...READ MORE

Jul 20, 2022 in Web Development by gaurav
• 23,260 points
1,258 views
0 votes
0 answers

How can I specify Google map with driving direction in jQuery mobile

I have done a Google Maps based ...READ MORE

Jul 20, 2022 in Web Development by gaurav
• 23,260 points
540 views
0 votes
0 answers

showing result of calculating in textbox with jquery

I want to calculate division of 2 ...READ MORE

Jul 25, 2022 in Web Development by gaurav
• 23,260 points
491 views
0 votes
1 answer

Ajax using JQuery in ASP .NET c#

jQuery Ajax in ASP.Net $.ajax({      & ...READ MORE

answered Jun 15, 2022 in JQuery by rajatha
• 7,680 points
3,929 views
0 votes
1 answer

jQuery UI " $("#datepicker").datepicker is not a function"

I struggled with a similar problem for ...READ MORE

answered Feb 17, 2022 in Java by Soham
• 9,710 points
6,288 views
0 votes
1 answer

TypeError: $(...).DataTable is not a function

This happened because the jQuery DataTables library ...READ MORE

answered Apr 30, 2022 in Git & GitHub by narikkadan
• 63,720 points
13,711 views
0 votes
1 answer

jQuery UI " $("#datepicker").datepicker is not a function"

The "$(...).datepicker is not a function" jQuery ...READ MORE

answered Jun 6, 2022 in JQuery by Edureka
• 13,690 points
14,680 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP