Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
I want to parse a variable to my MVC controller. I got it from javascript. So from the controller I can do some action.
This is my code
JavaScript
function getDeletedId() {
            var id = $("li.highlighted input");
            var ids = [];
            for (i = 0; i < id.length; i++) {
                ids[i] = $(id[i]).attr("id");
            }
        }

When I click a button I call getDeletedId function. I want to parse that Id.

Need Help,
Thank You

Regards,
Thomson Sitohang
Indonesia
Posted
Comments
Mohibur Rashid 26-Feb-15 22:36pm    
parse from what to what exactly?
Sitohang 26-Feb-15 22:39pm    
Parse from javascript to MVC controller method
Mohibur Rashid 26-Feb-15 22:41pm    
That does not answer the question. Perhaps I stated my question wrong. From what string to string. What would be your string to be parsed. What would you get after parsing.
Sitohang 27-Feb-15 0:22am    
Sorry before, maybe that is not parse but send. I want to send var ids from my script above to mvc controller. So I can process the ids in my controller.

1 solution

 
Share this answer
 

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