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
402 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,730 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,702 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,344 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
593 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
534 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
4,094 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,430 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,600 points
14,147 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
15,523 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