Use the starts with selector $('input[name^="pages_title"]').each(function() { alert($(this).val()); });. jsfiddle example. ... <看更多>
Search
Search
Use the starts with selector $('input[name^="pages_title"]').each(function() { alert($(this).val()); });. jsfiddle example. ... <看更多>
Get input name array key in JQuery ... var oneValue = $(this).val(); var name = $(this).attr('name'); var id = parseInt(name.match(/[0-9]+/)); ... <看更多>
The past few days, I've seen people in #jquery asking about using selectors. to match inputs with names that would produce arrays on the backend, such as. ... <看更多>
I've left the jQuery click event in as it looks like you already have a dependency ... Instead of storing them in an array, you can use $.each function for ... ... <看更多>