Jquery form beautification plug-in effect this section provides a jQtransForm jQuery form beautification plug-in. He can beautify any from. Let's take a look at the instance beautification code.
Jquery form beautification plug-in effect
This section provides a jqtransform jquery form beautification modifier plug-in, which can beautify any from. Let's take a look at the instance beautification code.
<! 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" xml: lang = "fr" lang = "fr">
<Head>
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>
<Meta http-equiv = "content-script-type" content = "text/Webpage effects"/>
<Meta http-equiv = "content-style-type" content = "text/css tutorial"/>
<Meta name = "gmapkey" content = ""/>
<Meta name = "description" content = ""/>
<Meta name = "keywords" content = ""/>
<Title> </title>
<Link rel = "stylesheet" href = "jqtransformplugin/jqtransform.css" type = "text/css" media = "all"/>
<Link rel = "stylesheet" href = "demo.css" type = "text/css" media = "all"/>
<Script type = "text/javascript" src = "requiered/jquery. js"> </script>
<Script type = "text/javascript" src = "jqtransformplugin/jquery. jqtransform. js"> </script>
<Script language = "javascript">
$ (Function (){
$ ('Form'). jqtransform ({imgpath: 'jqtransformin in/img /'});
});
</Script>
</Head>
<Body>
<Form action = "post. php tutorial" method = "post">
<Div class = "rowelem"> <label> input text: </label> <input type = "text" name = "inputtext"/> </div>
<Div class = "rowelem"> <label> input password: </label> <input type = "password"/> </div>
<Div class = "rowelem"> <label> checkbox: </label> <input type = "checkbox" name = "chbox" id = ""> </div>
<Div class = "rowelem"> <label> radio: </label>
<Input type = "radio" id = "" name = "question" value = "oui" checked> <label> oui </label>
<Input type = "radio" id = "" name = "question" value = "non"> <label> non </label> </div>
<Div class = "rowelem"> <label> textarea: </label> <textarea cols = "40" rows = "12" name = "mytext"> </textarea> </div>
<Div class = "rowelem">
<Label> select: </label>
<Select name = "select">
<Option value = ""> 1 & nbsp; </option>
<Option value = "opt1"> 2 & nbsp; </option>
</Select>
</Div>
<Div class = "rowelem">
<Label> select redimentionn': </label>
<Select name = "select2">
<Option value = "opt1"> big option test line with more wordssss </option>
<Option value = "opt2"> option 2 </option>
<Option value = "opt3"> option 3 </option>
<Option value = "opt4"> option 4 </option>
<Option value = "opt5"> option 5 </option>
<Option value = "opt6"> option 6 </option>
<Option value = "opt7"> option 7 </option>
<Option value = "opt8"> option 8 </option>
</Select>
</Div>
<Div class = "rowelem"> <label> submit button: </label> <input type = "submit" value = "envoyer"/> </div>
<Div class = "rowelem"> <label> reset button: </label> <input type = "reset" value = "ann#"/> </div>
<Div class = "rowelem"> <label> input button: </label> <input type = "button" value = "bouton"/> </div>
</Form>
</Body>
</Html>
Effect preview address
Http://g.111cn.cn/javascript/js/20100831/form
Source code
Http://down.bKjia. c0m/down/code/jquery/2010/0831/20543.html