469,307 Members | 2,288 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

Delete default value in the field

263 100+
Hi all.

I have this:

Expand|Select|Wrap|Line Numbers
  1. <input type="text" name="agg" size="30" value="---" readonly>
  2.  
  3. <select size="1" name="provv" onchange="var cc = this.options[this.selectedIndex].value; if(cc=='GAM')Popup(400,200,'GAM.asp');">
  4. <option value="">---------</option>
  5. <option value="GAM">GAM</option>
  6. <option value="GBM">GBM</option>
  7. </select>
If select GAM value open popup... I need if select GAM the value of field input type text "agg" is value null, deleted default value "---"... it's possible ?

Can you help me?
Oct 1 '09 #1
3 1950
Dormilich
8,651 Expert Mod 8TB
@viki1967
sure, though itíd be easier, if you gave the field an id.
Oct 1 '09 #2
viki1967
263 100+
One example please....?
Oct 1 '09 #3
Dormilich
8,651 Expert Mod 8TB
letís try the obvious first
Expand|Select|Wrap|Line Numbers
  1. document.getElementById(Ö).value = "";
Oct 1 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Steve | last post: by
4 posts views Thread by David B | last post: by
6 posts views Thread by Bernd Smits | last post: by
2 posts views Thread by James G via AccessMonster.com | last post: by
17 posts views Thread by (PeteCresswell) | last post: by
11 posts views Thread by Ed Dror | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.