johnpolacek / stacktable.js

jQuery plugin for stacking tables on small screens
http://johnpolacek.github.io/stacktable.js/
Other
1.03k stars 167 forks source link

form input array posting double #37

Open egemensarica opened 8 years ago

egemensarica commented 8 years ago

form input array posting double...

<input type="hidden" name="veg[]" value="x" >

egemensarica commented 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>
zloadmin commented 7 years ago

I have same problem