<input class='nc_msvalues' type='hidden' name='good[30][name]' value='xxx'>
where 30 any number can be.
alert( $('input[ @name ="good[*][name]"]').val() );
I try so, it is impossible ... How to receive value value?
Do you need to get all the values of the input? Then you can navigate through the first part of the name attribute (as I understand it, this part is permanent)
$('input[name^="good"]').val()
UPD: In this case, you need to use a plugin that allows regular expressions to be used in selectors.
Source: https://ru.stackoverflow.com/questions/100595/
All Articles