php - how to show/hide submit button on array checkbox -



php - how to show/hide submit button on array checkbox -

how can apply http://jsfiddle.net/8ybu5/24/ codes shown below. hides submit button checkbox checked or unchecked form load...

foreach($results $result) { <input type ='checkbox' name ='studid[]' value='". $result['studid']."' id='checky' > echo ' ', $result['fname'],' ',$result['mname'],' ',$result['lname'],'<br/>'; } <input type="submit" name="select" value="select" id='postme' >

foreach($results $result) { <input type ='checkbox' name ='studid[]' value='". $result['studid']."' class='checky' > echo ' ', $result['fname'],' ',$result['mname'],' ',$result['lname'],'<br/>'; } <input type="submit" name="select" value="select" id='postme' >

and

$('.checky').click(function(){ $('#postme').toggle(); });

this select checkboxes, , not one. there sould not id duplicates in html page.

but code dumb.

php

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -