Wednesday, April 30, 2014

Remove special character

<script language="javascript" type="text/javascript">
          function RemoveSpecialChar(u_name) {
            u_name.value = u_name.value.replace(/[ \/ , {} [ \] % @ # ! $ & * ` \\ ~ + = " ; ? ( ) | < > ' ^ :-]+/g, "");
           }
   </script>



<s:textfield name="u_name" cssClass="input_field"  javascript:RemoveSpecialChar(this); valid(this)"></s:textfield>

8 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!
    Data Science Training in Chennai | Data Science course in anna nagar
    Data Science course in chennai | Data science course in Bangalore
    Data Science course in marathahalli | Data Science course in btm

    ReplyDelete
  3. Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.
    python training in pune | python training institute in chennai | python training in Bangalore

    ReplyDelete
  4. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries.
    java training in chennai | java training in electronic city

    java training in marathahalli | java training in btm layout

    ReplyDelete
  5. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..thanks lot!!!

    android training in chennai

    android online training in chennai

    android training in bangalore

    android training in hyderabad

    android Training in coimbatore

    android training

    android online training


    ReplyDelete