jQWidgets Forums

jQuery UI Widgets Forums Grid get variable value in modal popup

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • get variable value in modal popup #27325

    kun
    Member

    Hello,
    I want to know if there is any way to get the value of a variable but not by id value or only the value and paint inside the popup when I click on the button to edit an example of what I do is like the code that this down…

    $("#res_id").val(dataRecord.res_id);

    html:

    incorrectly

    <input type ="hidden" id="res_id" disabled="disabled"/>

    correctly

    <?php

    //paint the value of the variable

    echo $res_id;

    ?>

    thanks for the help…

     

    get variable value in modal popup #27336

    Peter Stoev
    Keymaster

    Hi kun,

    It depends on how you created your modal Popup and which widgets you use there, but Yes, if you use Inputs, you can select them with jQuery and use the jQuery’s val() method to get or set their values.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.