locked
Error: undefined ASC, which the ID and the value RRS feed

  • Question

  • User-14642827 posted

    I getting an error "undefined ASC" in the textbox when the user toggles the radio button, please see code:

    <input type="radio" class="GroupBySorting" name="grActiveRecord" id="rdAscending" style="value=ASC; checked="checked"><label id="ASC" for="rbAscending">Ascending</label>

    in the textbox I get "undefined on" or "undefined ASC".  What is my error?

    Oh here is the textbox:

    <input class="validate[required, maxsize[40]" text="text" id="txtSortBy" maxlength="40" readonly="true" />

    Monday, January 11, 2016 7:46 PM

Answers

  • User61956409 posted

    Hi bthJ6,

    Your code is not a valid radio button html markup, it should look like this.

    <input type="radio" class="GroupBySorting" name="grActiveRecord" id="rdAscending"
        style="" value="ASC" checked="checked" />
    <label id="ASC" for="rbAscending">Ascending</label> 
    

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 12, 2016 8:53 AM

All replies

  • User475983607 posted

    Take a closer look at the markup.  Maybe a copy and paste error.

    style="value=ASC; checked="

    Same with the textbox style.

    What are you trying to do?

    Monday, January 11, 2016 8:16 PM
  • User-14642827 posted

    Thanks, I check that, but still the issue exist. What am I trying to do? If nothing is picked from the pick list to sort on, should the text be blank or a message telling the user to pick something? 

    Monday, January 11, 2016 8:47 PM
  • User475983607 posted

    Thanks, I check that, but still the issue exist. What am I trying to do? If nothing is picked from the pick list to sort on, should the text be blank or a message telling the user to pick something? 

    The markup is incorrect.  What you trying to do is not clear.  Post all of your code.

    Tuesday, January 12, 2016 1:52 AM
  • User61956409 posted

    Hi bthJ6,

    Your code is not a valid radio button html markup, it should look like this.

    <input type="radio" class="GroupBySorting" name="grActiveRecord" id="rdAscending"
        style="" value="ASC" checked="checked" />
    <label id="ASC" for="rbAscending">Ascending</label> 
    

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 12, 2016 8:53 AM