search for: my_inputs

Displaying 1 result from an estimated 1 matches for "my_inputs".

2006 Nov 22
9
Way to interpolate a variable sent to $()
...ields that I need to be able to switch on and off using one of a few hashes. In the example below I''m trying to get one to work. The problem occurs when I try to use the hash key to get a document id. Is there a way to get a document id with a key from the hash below? Javascript: var my_inputs = { status : 1 name : 0; }; $H(my_inputs).each( function(inp) { if ( inp.value == 1 ) { $(inp.key).show; } else { $(inp.key).hide; } }); HTML: <div id="status" class="frow"> <label for="status">Status:</label> <select nam...