Use the starts with selector
$('input[name^="pages_title"]').each(function() {
alert($(this).val());
});
Note: In agreement with @epascarello that the better solution is to add a class to the elements and reference that class.
More Related Contents:
- Edit datatable in shiny with dropdown selection (for DT v0.19)
- Does Twitter Bootstrap include jQuery?
- Get the offset of a hidden element
- submit disabled fields
- Is there a callback for Twitter’s Tweet Button?
- How to refresh the src of with jQuery?
- What’s faster for including scripts, using CDN (Google) or storing them locally in website’s root?
- Is there a difference between $().ready() and $(document).ready()
- jQuery Ajax 404 Handling
- JQuery search in static HTML page with highlighting of found word
- Disable select options based on value *through the HTML only!*
- Use requirejs and jquery, without clobbering global jquery?
- Performance of jQuery selectors vs local variables
- access model in javascript asp .net mvc razor
- is it possible to remove an html comment from dom using jquery
- The .fadeOut() method to use visibility property instead of display property
- My Own Like Button: Django + Ajax — How?
- jquery: ajax POST inside a form – prevent form submission on ajax call
- Detect paragraph element change with JQuery
- Bootstrap Carousel showing next and previous image
- Getting Zend_Navigation menu to work with jQuery’s Fisheye
- jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]
- Possible to have a floating horizontal scrollbar?
- How can I list the uploads from a YouTube Channel?
- Load content with ajax in bootstrap modal
- jQuery – Detecting if a file has been selected in the file input [duplicate]
- Can jQuery selectors be used with DOM mutation observers?
- How do you change the default widget for all Django date fields in a ModelForm?
- addClass and removeClass in jQuery – not removing class
- jQuery JSON response always triggers a ParseError