skip to Main Content

Log the nth-child number – Jquery

How do I log the the nth-child number of an element in a container using jQuery. Thanks in advance. $('.wrapper p').on('click', function() { //log the nth-child number of the clicked element console.log($(this).nth-child()) }) p { cursor: pointer; } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>…

VIEW QUESTION

want to action form in two urls – Jquery

is there any way to post form in two different urls? I am working on payment gateways and i want to post form in two urls at some conditions. here is the code... <h3>Page Redirection Request</h3> <form action="https://sandbox.bankalfalah.com/SSO/SSO/SSO" id="PageRedirectionForm" class="PageRedirectionForm"…

VIEW QUESTION

How to change image when I select dropdown in Bootstrap – Jquery

I have a dropdown list in Bootstrap. How to change img src (<img src="img/website_building.jpg"...) when selecting items in the dropdown list. Is this possible? <tr> <td class="bold text-primary"> <div class="dropdown show"> <a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true"…

VIEW QUESTION
Back To Top
Search