I don't think the CJ's came from the factory with a resistor, although I could be wrong. I think mine is just an on-off thing.
Any resistor should work, provided it is meant for a three speed switch. The YJ should be just fine.
1973 VW Karmann-Ghia first car
2009 Challenger R/T 6MT, Flowmaster, inTune daily driver
1977 CJ5 304, 3MT - under construction
And many in between!