Skip to content
elclanrs edited this page Aug 24, 2012 · 1 revision
  • Load jQuery library
  • Load js/min/jquery.idealforms.min.js plugin
  • Load css/jquery.idealforms.css stylesheet
  • Load the jQuery UI for datepicker support.
  • Replace your document's opening <html> tag with the following conditional comments. This will load the appropiate fixes for all supported IE versions:
<!--[if IE 8]> <html class="ie8" lang="en"> <![endif]-->
<!--[if IE 9]> <html class="ie9" lang="en"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
  • Load an HTML5 shim for IE8 unless you're using Modernizr which already has a shim.
  • To localize Ideal Forms in your language, load the corresponding file from js/i18n after loading the plugin.
  • Finally, call Ideal Forms on each form separately. Assign each form to a variable to have access to the public methods.
var $myform = $('#my-form').idealforms({ options });
Clone this wiki locally