Jump to content

Applying JS effect to virtual submit field


Recommended Posts

I am trying to allow for this JQuery tag affect to occur when the user types in to the text area in the virtual field of my submission form but have not been successful.  Disclosure: Since I am new to Javascript, I was wondering if I am referencing the JQuery and Tag-It components properly?  I attempted switching the id/class element with "cbParamVirtual1" and "caspioform" but no luck.  I would appreciate anyone's feedback.

(This is in the footer of the datapage.)

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript" charset="utf-8"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tag-it/2.0/js/tag-it.js" type="text/javascript" charset="utf-8"></script>

<script language="JavaScript">
        $(function(){

            //-------------------------------
            // Single field
            //-------------------------------
            $('cbParamVirtual1').tagit({
                // This will make Tag-it submit a single form value, as a comma-delimited field.
                singleField: true,
    singleFieldDelimiter: ',',
                singleFieldNode: $('#mySingleField')
            });
            
        });

</script>

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...