I think when create a input with prepend or append the class spanx must be applied to the div.input-prepend or div.input-append, not to the input.