http://api.jquery.com/category/selectors/
$('input[type=button][name^=my-][name$=-press]').click(function() {
// code
})
To dynamically assign events to elements, use on http://api.jquery.com/on/ and set your selector as the second argument to the correct delegateevent.
$('#container').on('click', 'input[type=button][name^=my-][name$=-press]', function() {
// code
})
Assuming you insert your inputs on #container, otherwise replace #containerwith body, but it is always preferable to choose the closest ancestorselector