Hey,
I'm trying to get the value of a masked input field via javascript.
I'm using version 2.1.5.0 of the RadInput.Net2
On the founds I found:
http://www.telerik.com/community/forums/aspnet/input/radmaskedtextbox-javascript-value.aspx
http://www.telerik.com/community/forums/aspnet/input/input-into-radmaskedtextbox-with-qtp.aspx
However It's not working.
I've tried:
alert(document.getElementById('_ctl0_ph_txtSocialSecurityNumber').GetValue());
alert($find('_ctl0_ph_txtSocialSecurityNumber').GetValue());
alert(_ctl0_ph_txtSocialSecurityNumber.GetValue();
And a few other variations. Nothing works. I can get the value with jQuery and other methods but i need the unmasked version. The same functionality as the new version:
http://www.telerik.com/help/aspnet-ajax/input_clientsideradmaskedtextbox.html
get_value - Returns the value of the text box. This is the string without any prompt characters or literals.
Any ideas?
| <td valign="top" style="font-weight: normal" class="ms-formbody"> |
| <%-- <asp:DropDownList ID="ddlReferralSource" runat="server" Width="132"> |
| </asp:DropDownList>--%> |
| <telerik:RadComboBox runat="server" ID="radComboReferralSource" AllowCustomText="false" |
| EnableLoadOnDemand="false" MarkFirstMatch="true" OnClientSelectedIndexChanged="ValidateHearAboutUsSource" > |
| </telerik:RadComboBox> |
| <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="radComboReferralSource" |
| Display="Dynamic" SetFocusOnError="true" ErrorMessage="<%$Resources:CareerResources, Career_RequiredField%>" |
| ValidationGroup="profile" InitialValue="<%$Resources:CareerResources, Career_SelectText%>"></asp:RequiredFieldValidator> |
| </td> |
| <td> |
| <asp:TextBox runat="server" ID="txtHearAboutUsSourceValue"></asp:TextBox> |
| <asp:RequiredFieldValidator runat="server" ID="rfvHearAboutUsSourceValue" ControlToValidate="txtHearAboutUsSourceValue" |
| Display="Dynamic" SetFocusOnError="true" ErrorMessage="<%$Resources:CareerResources, Career_RequiredField%>" |
| ValidationGroup="profile" ></asp:RequiredFieldValidator> |
| </td> |
| <script type="text/javascript" language="javascript"> |
| function ValidateHearAboutUsSource(item, eventArgs) { |
| alert("test"); |
| var item1 = eventArgs.get_item(); |
| alert("You selected " + item1.get_text()); |
| var dropdownvalue = item.value; |
| alert(dropdownvalue); |
| var textBoxItem = document.getElementById('<%=txtHearAboutUsSourceValue.ClientID%>' |
| var validator = document.getElementById('<%=rfvHearAboutUsSourceValue.ClientID%>'); |
| } |
| </script> |
| <div style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;"> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 11px; font-weight: bold;">[Fit Guide Detail - Fit By</div> |
| [Garment ifnoramtion]</div> |
| <p></p> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 11px; font-weight: bold;">[Fit Guide Detail]</div> |
| <div style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">[Fit Guide Information Here]</div> |
| <p></p> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 12px; font-weight: bold;">[Product Title Here]</div> |
| <div style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">[Product Information Here]</div> |
| <p></p> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 11px; font-weight: bold;">Tunic Details</div> |
| <p > |
| <table style="vertical-align: top;"> |
| <tbody> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Color Choices: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;">asfasef</td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Collection </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;">asdfasasdfdf</td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Fabrication Fabrication </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;">asef</td> |
| </tr> |
| </tbody> |
| </table> |
| </p> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 11px; font-weight: bold;">Pants Details</div> |
| <p > |
| <table style="vertical-align: top;"> |
| <tbody> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Print: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Style: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Neckline: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Sleeves: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Design Features: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| </tbody> |
| </table> |
| </p> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 11px; font-weight: bold;">Size, Contents & Care</div> |
| <p > |
| <table style="vertical-align: top;"> |
| <tbody> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Waist: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Leg Type: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Length: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Hemline: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </p> |
| <div style="font-family: 'arial'; color: #007dca; font-size: 11px; font-weight: bold;">[Details4]</div> |
| <p > |
| <table style="vertical-align: top;"> |
| <tbody> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Size Choices: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Body Lenght: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Inseam: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Fit(Tunic) </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| <tr> |
| <td style="width: 250px; height: 5px; vertical-align: top; padding-top: 1px;"> |
| <ul style="margin-bottom: 0px; height: auto; vertical-align: top;"> |
| <li style="font-family: 'arial'; color: black; font-size: 11px; font-weight: bold;">Content: </li> |
| </ul> |
| </td> |
| <td style="width: 350px; font-family: 'arial'; height: 5px; color: black; font-size: 11px; vertical-align: top;"></td> |
| </tr> |
| </tbody> |
| </table> |
| </p> |