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 in Web Development by gaurav
• 17,580 points
8 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
1 answer

Loading gif in jQuery ajax call is not showing

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

answered Jun 27 in Web Development by rajatha
• 7,040 points
41 views
0 votes
0 answers

Jquery array.push() not working

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

Jul 1 in Web Development by gaurav
• 17,580 points
36 views
0 votes
0 answers

jQuery exclude elements with certain class in selector

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

Jul 20 in Web Development by gaurav
• 17,580 points
19 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 in Web Development by gaurav
• 17,580 points
13 views
0 votes
0 answers

showing result of calculating in textbox with jquery

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

Jul 25 in Web Development by gaurav
• 17,580 points
12 views
0 votes
0 answers
0 votes
1 answer

Ajax using JQuery in ASP .NET c#

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

answered Jun 15 in JQuery by rajatha
• 7,040 points
58 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 in Java by Soham
• 8,740 points
1,554 views
0 votes
0 answers

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

I am working on jQuery's Datatable JS ...READ MORE

Apr 29 in Git & GitHub by Kichu
• 19,040 points
683 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 in JQuery by Edureka
• 13,640 points
69 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP