# ThreeInputs

Open me!

Demo View | Source Code (opens new window) | Download all widgets

Assets:

Images:

JavaScripts:

    <!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" />
    
    	<script type="text/javascript" src="../core/lib/jquery-1.6.2.min.js"></script>
    	<script type="text/javascript" src="js/jquery.watermark.min.js"></script>
    	<script type="text/javascript" src="js/three-inputs.js"></script>
    
    	<link href="style.css" rel="stylesheet" type="text/css" />
    
    	<title>Three inputs</title>
    </head>
    <body>
    	<h1>Three inputs</h1> 
    
    	<div class="content"> 
    		<form id="lines" >
    			<input id="line-1" name="line-1" type="text" class="checkbox_text left" title="Some Text"/></br>
    			<input id="line-2" name="line-2" type="text" class="checkbox_text left" title="Some Text"/></br>
    			<input id="line-3" name="line-3" type="text" class="checkbox_text left" title="Some Text"/></br>
    		</form>
    	</div>
    </body>
    </html>
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    .checkbox_text {
        background: url("../core/images/checkbox_text_bg.png") no-repeat;
        width: 176px;
        height: 21px;
        margin-top: 20px;
        font-size: 12px;
    	overflow: hidden;
    	border: 0;
    	padding-left: 5px;
    	padding-right: 5px;
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    $(function () {
        var inputsForm = $("#lines").find("input,textarea");
        for (var k = 0; k < inputsForm.length; k++) {
            $(inputsForm[k]).watermark($(inputsForm[k]).attr('title'));	
        }
    });
    
    1
    2
    3
    4
    5
    6
    // Make sure to add code blocks to your code group
    Last Updated: 4/20/2021, 12:35:20 PM