Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
my code is
C#
var getSelectedPermissionList = function () {
          var allRows = App.grdAdminPermission.getRowsValues();
          var items;
          for (i = 0; i < allRows.length; i++) {
              if (allRows[i].Assigned == true)
                  items = items + allRows[i].ModuleId + ',';
          }
          var item = Ext.encode(items);
          return item;
      };



how can i remove double quote
Posted
Comments
[no name] 29-Oct-14 1:50am    
where ? Can you paste a sample string with object name

1 solution

Try using string.replace (/"/g,'');

Refer below for more info.

http://www.w3schools.com/jsref/jsref_replace.asp[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Oct-14 2:49am    
Sure, a 5.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900