Quick javascript job (forms)

进行中 已发布的 Feb 2, 2005 货到付款
进行中 货到付款

I have a page of textboxes with associated checkboxes.

They are named thus:

<input name="mDPad[catid_32]" type="text" class="yb" size="3" maxlength="4" value=""><input type="checkbox" name="mDPad[catidcheckbox_32]" value="32" checked>

with 32 being replaced with numbers 1 - 40

I need a quick bit of javascript that:

1 - when a checkbox is checked, the associated textbox is enabled with a class of yb

2 - when a checkbox is not checked or unchecked, the associated textbox is diabled with a class of gb

3 - sets the value of the textbox to an empty string when a checkbox is unchecked

The enable / disable needs to happen both after the page has loaded for resetting status of the textboxes for checkboxes that are checked; and also of course on a change event for the checkbox.

That's all!

Don't worry about cross browser compatability, will only be used in IE 5.5+.

Thanks,

Chris

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

IE 5.5+

工程 JavaScript MySQL PHP 软件构架 软件测试

项目ID: #3546042

关于项目

远程项目 活跃的Feb 2, 2005