function go(a) { var v = parseFloat(a.value); var f = {'filter': function(val){ if (!v) return true return parseFloat(val.replace(/\$/,''))<= v;}}; Table.filter(a,f) }