<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?

    1 answer 1

    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.

    • But there are a lot of good fields. The third element is important. It is a field with [name].
    • Has added in the answer - Deonis