If a value is hardcoded in the page source using the value attribute, you can
$('#attached_docs :input[value="123"]').remove();
If you want to target items that have a value of 123 , which was set by the user or programmatically, use EDIT works in both directions.
or
$('#attached_docs :input').filter(function(){return this.value=='123'}).remove();
demo http://jsfiddle.net/gaby/RcwXh/2/
Gaby aka G. Petrioli Jul 18 2018-11-11T00: 00Z
source share