Since the select option is less, it is simple to do.
<select name="typeid" id="typeid"><option value="-1">-Please select type-</option><option value="grade">Release level</option><option value="money">Release cash</option><option value="gift">Release gift</option></select><tr id="grade"></tr><tr id="money"></tr><script>$(document).ready(function(){var alltypes = ['grade','money','gift'];$("#typeid").change(function(){var type = $(this).val();for(i=0;i<alltypes.length;i++){$("#"+alltypes[i]).hide();$("#"+type).show();}});});</script>Store all ids in an array, then iterate through all ids to display only the ids of the selected value
The simple implementation method of selecting the id corresponding to the selected value and displaying other ids is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.