Solved

Script to suppress a web site field

Posted on 2007-11-30
2
210 Views
Last Modified: 2010-04-16
We use an online ERP/CRM system that has an ecommerce site built in.  I have limited access to the code that creates the site.  On customer registration, there is a field called "Partner Code" that I would like to hide.  I can't do it in the software but I can add code to the site's footer.  I'm hoping that will work to hide the field.  I attached the code from that area.  The field id is "partner".
<TD nowrap>

<span style="white-space: nowrap" id="partner_fs">

<input value="" maxlength="20" type="text" class="input" onChange="setWindowChanged(window, true);this.isvalid=validate_field(this,'text',true,false);this.checkvalid=false;if (this.isvalid) this.isvalid=validate_textfield_maxlen(this,20,true,false);return this.isvalid;" onFocus="if (this.isvalid == true || this.isvalid == false) this.checkvalid=true;" size="20" name="partner" onBlur="if (this.checkvalid == true) {this.isvalid=validate_field(this,'text',false,false);} if (this.isvalid == false) {this.focus(); this.select(); return this.isvalid;}" id="partner"></span></TD></TR>

<tr>

<td class='smalltext'>&nbsp;</td><td class='smalltext'>If you have a partner or affiliate code, enter it here</td></tr>

Open in new window

0
Comment
Question by:BasilFawlty001
2 Comments
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
ID: 20384213
add this code to footer
<script type="text/javascript">

    document.getElementById('partner').style.display = 'none';

</script>

Open in new window

0
 

Author Comment

by:BasilFawlty001
ID: 20384309
Perfect.  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Debugging step-by-step Jquery/Javascript 6 57
Poster Video HTML 5 Scale to fit video 3 37
Message not shown 5 30
Having problem getting this to work 2 18
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now