Click here to Skip to main content
16,021,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
$('.dropdown-submenu .dropdown-toggle').on("click", function(e) {
    e.stoppropagation();
    e.preventdefault();
    $(this).next('.dropdown-menu').toggle();
});


What I have tried:

Help me to convert Javascript to typescript code.
Posted
Comments
F-ES Sitecore 6-Jul-18 5:34am    
That's not native javascript, it's using jQuery so google how to use jQuery with typescript

https://stackoverflow.com/questions/32050645/how-to-use-jquery-with-typescript

That was the first google result but obviously there will be many more.
Member 13901025 6-Jul-18 5:57am    
Agree, But I need this above mention jquery logic into Typescript format/syntax.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900