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 comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...