How to use jQuery inside FTL forms?
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
