Open egemensarica opened 8 years ago
<script type="text/javascript">
var ww=document.body.clientWidth;
$(document).ready(function(){ adjust(); });
$(window).bind('resize orientationchange',function(){ww=document.body.clientWidth;adjust();});
var adjust=function(){
if(ww<800)
{
$(".small-only :input").removeAttr('disabled');
$(".large-only :input").attr("disabled", true);
$(".small-only :input").attr("disabled", false);
}
else if(ww>=800) {
$(".large-only :input").attr("disabled", false);
$(".large-only :input").removeAttr('disabled');
$(".small-only :input").attr("disabled", true);
}
}
</script>
I have same problem
form input array posting double...
<input type="hidden" name="veg[]" value="x" >