Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you style file input elements?
09-26-2011, 05:19 PM
Post: #5
RE: How do you style file input elements?
function changeInputs()

{

var els = document.getElementsByTagName('input');

var elsLen = els.length;

var i = 0;

for ( i=0;i<elsLen;i++ )

{

if ( els[i].getAttribute('type') )

{

if ( els[i].getAttribute('type') == "text" )

els[i].className = 'text';

else

els[i].className = 'button';

}

}

}

This a program by which you can style your file elements.

Web design company | Outsourcing Web Design | android developers
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do you style file input elements? - kiruthika - 09-26-2011 05:19 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)