kudos,
What about using .index?
e.g $(':input:eq(' + ($(':input').index(this) + 1) + ')');
More Related Contents:
- What is the purpose of backbone.js?
- jQuery parent of a parent
- How to catch net::ERR_CONNECTION_REFUSED
- Twitter-style autocomplete in textarea
- Targeting $(this) within nested for each loops in jQuery
- How to get on-screen visible element objects in jQuery? [duplicate]
- Keep tabbing within modal pane only
- Are 301 redirects possible using javascript or jQuery?
- copying the value of a form’s file input field to another form’s input field
- jQuery addClass onClick
- AngularJS: lazy loading controllers and content
- jQuery uses (new Function(“return ” + data))(); instead of eval(data); to parse JSON, why?
- Is My Page Being Loaded from the Browser Cache?
- How to use jQuery UI with Angular 2
- Is it a bad practice to use jQuery in Angular? [closed]
- How to make only some text in a text-box read-only while allowing the rest to be edited
- JavaScript NTP time
- How to get html source code from external url
- In jQuery, is there any way to only bind a click once?
- Queue AJAX calls
- What is the difference between $(document).ready(function() and $(function() ?
- canvas- Cropping images in different shapes
- flot graph, use legend to turn on/off series
- Ordered JSONObject
- Bootstrap Dropdown menu is not working
- How to post ASP.NET MVC Ajax form using JavaScript rather than submit button
- jQuery match part of class with hasClass
- trigger file upload dialog using javascript/jquery
- Python Flask Cors Issue
- Renaming object keys recursively