The most convenient method involves directly inserting the HTML code into your existing premadeForm
template. By placing the CSS file in the client folder, it should function seamlessly without any additional steps.
If you prefer to maintain separate files, you can manually load them using the 'public' folder approach recommended by @p4bloch. Storing these files in the public directory allows access from the client side but does not automatically apply them. In this case, you would need to initiate loading via an ajax call:
Assuming the files are located within the 'public' folder:
Load HTML as needed:
$.get( "yourform.html", function( data ) {
$( ".result" ).html( data );
alert( "Loading complete." );
});
Source: https://api.jquery.com/jQuery.get/
Load CSS dynamically:
$("<link/>", {
rel: "stylesheet",
type: "text/css",
href: "yourcss.css"
}).appendTo("head");
Source: Load external css file like scripts in jquery which is compatible in ie also