<a class=”selectcolor <c:if test=”${color==’黑色’ }”>colored</c:if>” οnclick=”setselectcolor(this)”>黑色</a>
<script type=”text/javascript”>
function setselectcolor(o){
var psel = document.getElementById(“openval”);
openval.value = o.innerHTML;
document.getElementById(“myform”).submit();
}
</script>