JQuery Radio Button issue doesn't show text input

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kfirbene
    New Member
    • Jan 2016
    • 2

    JQuery Radio Button issue doesn't show text input

    Hi,

    I am adding radio Buttons using JQuery and their text values does not appear even though in the Chrome debugger the text value is inserted correctly.
    Can someone tell me what the issue?

    The code:
    Code:
    $(document).ready(function(){
        for(var i=0;i<10;i++)
        {
            var tmpScenario = "scenario"+i;
            var tmpInput = $("<input>",{"type":"radio","name":"scenario","id": tmpScenario});
            $("#insertScenarios").append(tmpInput);
            $("#"+tmpScenario).text(tmpScenario);
            $("#"+tmpScenario).addClass("radioPadding");
        }
    });
    Last edited by Rabbit; Jan 24 '16, 05:03 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    #2
    You can use Server controls.

    Comment

    • kfirbene
      New Member
      • Jan 2016
      • 2

      #3
      Can you elaborate or write code?
      Thanks.

      Comment

      • paulnevinthomas
        New Member
        • Feb 2016
        • 3

        #4
        jquery radio button issue doesn't show text input

        Just trigger the click event when you set the checked attribute.
        $("#fpago2").at tr('checked', true).trigger(' click');
        Changing an attribute on the element doesn't fire a changed event... Neither by the native setAttribute or using jQuery's attr.

        Comment

        • vignes
          New Member
          • Jan 2017
          • 1

          #5
          JQuery Radio Button issue doesn't show text input Reply to Thread

          Inside into some HTML div coding we have to text insert for div element properties.The wrapper input page inside the div code customize user skins.

          <label>
          <div class="icheckbo x disabled">
          <input type="checkbox" :"quux[1]" disabled>
          </div>
          Foo
          </label>

          Comment

          Working...