javascript - Radio button onclick does not change value -


I am trying to execute JS below. I have a radio button that, after clicking on the click, the child should set the property of variable refreshmapping. However, it does not seem to work. I have set the template the default value of refreshmapping, every time I select the radio button, the value should be changed in the child, which is not any help would be appreciated.

  & lt; / Script & gt; & Lt; Span Abrap & gt; & Lt; Body & gt; & Lt; Table cellpadding = '0' field = '0' width = '' & gt; & Lt; TR & gt; & Lt; Td class = '{DataValueWrite}' outlook = 'aboopep' width = '' align = "top" & gt; & Lt; Input & lt; Paya: Include name = "client validity" /> Type = "radio" class = "radio" name = "& lt; pague: reference name =" $ this-name "/> onclick =" document.getElementById ('RefreshMapping') value = 'child' ;. Click on document.getElementById ('RefreshMapping') ();. "Id =" & lt; Pega: Reference name = "$ THIS-defining (pyPropertyName)" /> & lt; pega: when Java = " & gt; disabled & lt; / pega: when & gt; value = "true" & gt; & lt; font class = "label name" & gt; child sub-product / Services & lt; / font & gt; & lt; / TD & gt; & lt; / tr & gt; & lt; / table & gt; & lt; / body & gt; & lt; / span & gt; PA : This PEGA is in a device called PRPC, so ignore syntax because it is PAGA   

First of all, Your HTML looks faulty, why is body tag inside spans?

Second, are you sure that you come The page has an html element on the page with 'refreshmapping'? Verify that the result of this radio button if you are trying to get it is.

Third, the value for your input is currently "True" is set to "value =" true "', in order to select a radio button in Javascript, you must set the element to check it, it will attribute the property value value to the specified property in the name' value attributeThe radio button usually has several input tags in the same radio boot unit, so that a button can be selected in that group, you get that specific element and it is set to check through the document. GetElementByID ("id"). Checked = "true";

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -