How to use jQuery inside FTL forms?

Solution Verified - Updated -

Issue

When importing jQuery inside the FTL form like this:


<html> <head> <title>Hello World</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> </head> <body> <div>This is Hello World by HTML</div> <div><input type="button" id="prueba" value="Probar"></div> <div id="msg"> Mensaje por Default <script> $( "#prueba" ).click(function() { $("#msg").html( "Handler for .click() called." ); }); </script> </div> <div>otro mensaje</div> </body> </html>

The expected output is that after clicking on the defined button, the text will change. However when the form is being used in the business-central, nothing happens when the button is clicked. Why? What is the proper way how to use jQuery inside the forms?

Environment

  • Red Hat JBoss BPM Suite
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content