To elaborate on Tim's accurate answer - electric guitars have magnetic pickups which detect the movement and vibration of the strings (as Tim said). Therefore electric strings usually use a nickel winding around a steel core so the magnet will "pick-up" the vibration of the strings.
Both of the acoustic sets you linked use a bronze alloy (as do most acoustic strings) for the winding on the wound strings - which will not respond very well to a magnet ("non magnetic") and will insulate the magnetic steel core of your wound strings from the pickups.
The phosphor bronze set (JK) will have a more mellow sound on an acoustic and the TB set is an 80/20 Bronze which will have a brighter more present sound. Neither will work well on your electric.
The unwound steel strings are the same material on electric sets and acoustic sets so they are basically interchangeable. Where the difference comes in is on the wound strings. Nickle winding works best on electric for responding to the magnetic pickup but does not sound so great acoustically. But that is not a problem on electric guitars because the sound comes from the amplifier and you don't have to worry about what they instrument sounds like acoustically.
As an interesting related aside, you can get "zebra" strings which have alternate Bronze and Nickel Windings if you have an acoustic guitar with a magnetic pickup. Most acoustic guitar pickups do not use magnets but there are some that do. The idea behind the "zebra winding" is a compromise to allow for a better acoustic sound than nickel wound strings would provide - while still allowing the magnetic pickups to react to the string vibration.