i have inluded below in jsp file
Expand|Select|Wrap|Line Numbers
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
Expand|Select|Wrap|Line Numbers
- function validateOtherDiagCodeFromSP_WOTHERICD(num){
- alert("kinjal "+num);
- var otherDiagCode = document.forms['content:ProviderSubmitClaims'].elements['content:ProviderSubmitClaims:itxEIFOtherDiagCode'+num].value;
- otherDiagCode = trimAll(otherDiagCode).toUpperCase().replace(/[^a-zA-Z0-9]/g,''); //it will convert to uppercase plus replace all characters except numbers and letters
- alert(otherDiagCode);
- CallPageMethod("validateOtherDiagCode", success, fail,otherDiagCode);
- $.ajax({
- url: "/nva/application/claims/provider/dao/ProSubmitClaimsDAO/validateOtherDiagCode",
- type: "GET",
- data: otherDiagCode,
- dataType: 'json',
- success: function(response){
- alert("response: "+response);
- },
- error: function(e){
- //handle error
- }
- });
- }
can someone please help me what is right way to do this?
thanks