Jump to content

ERROR: change bgcolor of input type="file" by applying css


delickate

Recommended Posts

Hello All,

I im using input type file in my php code. i need to change bgcolor color of its browse button.

any one can help me?

if i did this by using following code:

<html>

<head>

</head>

<body>

<form name="test_form" method="post" action="#">

  <input type="File" id="chk1" onChange="chk2.value=chk1.value;" style="display: none;">

<input name="textfield" type="text" value="" id="chk2" disabled="true">

<img src="btn.bmp" width="64" height="36" onclick="chk1.click();">

 

</form>

</body>

</html>

it works but it disable the upload box.i mean the browser box apears faild. bottun didn't work on clicking

is ther any one to guide me?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.