tag_add

Add to textbox from listbox (select option) ensure its uniqueness


Public

Tested

My Own Work


<script type = "text/javascript">
    function tag_add() {
        tags = document.getElementById("T").value;
        if (tags == "Tags") {tags = ""} ;
        ta = document.getElementById("TT").options[document.getElementById("TT").selectedIndex].text ;
        if (tags.search(ta) == -1) {
            document.getElementById("T").value = tags + " " + ta ;
        }
    }
</script>

Views 167 Downloads 24

JS+JQuery Components
ANmarAmdeen
813
Attachments
Revisions

v1.0