We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10450
    • 30 Posts
    I have this code in my site. I want to implement this code in MODX. so where to put .js file PLS help

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Dynamic Inline Form Validation Demo</title>
    <link rel="stylesheet" type="text/css" href="messages.css" />
    <script type="text/javascript" src="messages.js"></script>
    </head>
    <body>
    <div id="wrapper">
    <form name="form" id="form" class="form" action="success.html" onsubmit="return validate(this)" method="post">
    <label for="name">Full Name:</label>
    <input type="text" name="name" id="name" />
    <label for="password">Password:</label>
    <input type="text" name="password" id="password" />
    <input type="submit" value="Submit" class="submit" />
    </form>
    </div>
    </body>
    </html>

      • 12379
      • 460 Posts
      Try:

      assets/js/
        Mostly harmless.
        • 10450
        • 30 Posts
        thanks buddy but i wanna separate both code i.e. form code and js file. and how to call that js file to take any affect to that form