How to Split @ in MVC JQuery

 
   In this MVC @ is The Special Character.  So normal split function is (string.split('@')) in this Case Did Not Use @ in MVC. Getting Error on this Page.

  In MVC You Can Use @@ . I Mentioned One Example Below . I Will Split Only Domain Name in MVC and C#. If You Are Using Single @ You Will Get The Server Side Error.

var EmailDomain = txtemail.split("@@")[1];

Comments

Popular posts from this blog

Unable to perform operation on the item is locked in workspace

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Insecure cookie setting: missing Secure flag