jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput Posting jqxNumberInput value from a form

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  magostoni 9 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • magostoni
    Participant

    I inserted a jqxNumberInput in a form.

    <form class="form" id="form" target="_self"  method="post" action="<?php echo site_url('/save_form');?>">
    	<div class="row input-block">
    		<div class="col-sm-1"><label>N° tasselli:</label></div><div class="col-sm-1"><div id='ntasselli' name='ntasselli'></div></div>
    	</div>
    	<div class='row input-block' style="margin-bottom: 20px;"><div class="col-sm-2 col-md-offset-1">
    			<input type="button" value="Salva" id="sendButton" />
    		</div></div>
    </form>
    
    <script type="text/javascript">
        $(document).ready(function () {
    
    	$('#ntasselli').jqxNumberInput({width: '100%', height: 25, min: 0, digits: 3, decimalDigits: 0, spinButtons: true, theme: theme});
    </script>

    But on the php where the form data are posted, I don’t get the numeric value (for example 3), but the string with placeholders (for example __3)
    Is there a way to solve this isssue?


    admin
    Keymaster

    Hi magostoni,

    The form’s post includes the input’s value which in your case is “__3”.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    magostoni
    Participant

    Hi Peter,
    yes I know that in the $_POST array I have input’s value which in my case is “__3″;

    my question is about how, in my php page that the form post to, I can get directly the numeric value instead of “__3”.

    Kind regards,
    Matt

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.