public/javascripts/inputex/build/inputex.js
function() {
	   // IE doesn't want to set the "type" property to 'password' if the node has a parent
	   // even if the parent is not in the DOM yet !!
	   
      // This element wraps the input node in a float: none div
      this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
	      
		// Attributes of the input field
	   var attributes = {};
	   attributes.type = 'password';
	   attributes.size = this.options.size;
	   if(this.options.name) attributes.name = this.options.name;
	
	   // Create the node
		this.el = inputEx.cn('input', attributes);
		
		//inputEx.PasswordField.byId
		
		// Append it to the main element
		this.wrapEl.appendChild(this.el);
      this.fieldContainer.appendChild(this.wrapEl);
		
		// Caps lock warning
		if(this.options.capsLockWarning) {
		   this.capsLockWarning = inputEx.cn('div',{className: 'capsLockWarning'},{display: 'none'},inputEx.messages.capslockWarning);
		   this.wrapEl.appendChild(this.capsLockWarning);
	   }
	   
	   // Password strength indicator
		if(this.options.strengthIndicator) {
		   this.strengthEl = inputEx.cn('div', {className: 'inputEx-Password-StrengthIndicator'}, null, inputEx.messages.passwordStrength);
		   this.strengthBlocks = [];
		   for(var i = 0 ; i < 4 ; i++) {
		      this.strengthBlocks[i] = inputEx.cn('div', {className: 'inputEx-Password-StrengthIndicatorBlock'});
		      this.strengthEl.appendChild( this.strengthBlocks[i] );
		   }
		   this.wrapEl.appendChild(this.strengthEl);
		}
	}
function() {
	   // IE doesn't want to set the "type" property to 'password' if the node has a parent
	   // even if the parent is not in the DOM yet !!
	   
      // This element wraps the input node in a float: none div
      this.wrapEl = inputEx.cn('div', {className: 'inputEx-StringField-wrapper'});
	      
		// Attributes of the input field
	   var attributes = {};
	   attributes.type = 'password';
	   attributes.size = this.options.size;
	   if(this.options.name) attributes.name = this.options.name;
	
	   // Create the node
		this.el = inputEx.cn('input', attributes);
		
		//inputEx.PasswordField.byId
		
		// Append it to the main element
		this.wrapEl.appendChild(this.el);
      this.fieldContainer.appendChild(this.wrapEl);
		
		// Caps lock warning
		if(this.options.capsLockWarning) {
		   this.capsLockWarning = inputEx.cn('div',{className: 'capsLockWarning'},{display: 'none'},inputEx.messages.capslockWarning);
		   this.wrapEl.appendChild(this.capsLockWarning);
	   }
	   
	   // Password strength indicator
		if(this.options.strengthIndicator) {
		   this.strengthEl = inputEx.cn('div', {className: 'inputEx-Password-StrengthIndicator'}, null, inputEx.messages.passwordStrength);
		   this.strengthBlocks = [];
		   for(var i = 0 ; i < 4 ; i++) {
		      this.strengthBlocks[i] = inputEx.cn('div', {className: 'inputEx-Password-StrengthIndicatorBlock'});
		      this.strengthEl.appendChild( this.strengthBlocks[i] );
		   }
		   this.wrapEl.appendChild(this.strengthEl);
		}
	}
function ( ) { // IE doesn't want to set the "type" property to 'password' if the node has a parent // even if the parent is not in the DOM yet !! // This element wraps the input node in a float: none div this . wrapEl = inputEx . cn ( 'div' , { className : 'inputEx-StringField-wrapper' } ) ; // Attributes of the input field var attributes = { } ; attributes . type = 'password' ; attributes . size = this . options . size ; if ( this . options . name ) attributes . name = this . options . name ; // Create the node this . el = inputEx . cn ( 'input' , attributes ) ; //inputEx.PasswordField.byId // Append it to the main element this . wrapEl . appendChild ( this . el ) ; this . fieldContainer . appendChild ( this . wrapEl ) ; // Caps lock warning if ( this . options . capsLockWarning ) { this . capsLockWarning = inputEx . cn ( 'div' , { className : 'capsLockWarning' } , { display : 'none' } , inputEx . messages . capslockWarning ) ; this . wrapEl . appendChild ( this . capsLockWarning ) ; } // Password strength indicator if ( this . options . strengthIndicator ) { this . strengthEl = inputEx . cn ( 'div' , { className : 'inputEx-Password-StrengthIndicator' } , null , inputEx . messages . passwordStrength ) ; this . strengthBlocks = [ ] ; for ( var i = 0 ; i < 4 ; i ++ ) { this . strengthBlocks [ i ] = inputEx . cn ( 'div' , { className : 'inputEx-Password-StrengthIndicatorBlock' } ) ; this . strengthEl . appendChild ( this . strengthBlocks [ i ] ) ; } this . wrapEl . appendChild ( this . strengthEl ) ; } }
Set the el type to 'password'
Set the el type to password