how to show html content when select box item selected
In custom form you can use ajax API for this. You can find the sample code from here

When you are using node form then use conditional_fields module for this purpose.