Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form input array posting double #37

Open
egemensarica opened this issue Apr 21, 2016 · 2 comments
Open

form input array posting double #37

egemensarica opened this issue Apr 21, 2016 · 2 comments

Comments

@egemensarica
Copy link

egemensarica commented Apr 21, 2016

form input array posting double...

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

@egemensarica
Copy link
Author

egemensarica commented Apr 21, 2016

<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
Copy link

I have same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants