Which jacket do I have to buy? ('Which...' out of a specific number or collection of jackets) or
What jacket do I have to buy? (What type of a jacket, a more general question).
Also consider replacing 'have to' with 'should' to make your question sound more natural.
Which / what jacket should I buy?
All the best,
- For Teachers