Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8573855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:20:45+00:00 2026-06-11T19:20:45+00:00

when i am usung the jquery multiselect close function i am calling a webmethod

  • 0

when i am usung the jquery multiselect close function i am calling a webmethod in the code behind the method is not hitting
my script is:

$(document).ready(function () {

    $('.department').multiselect({
        show: ["bounce", 5], hide: ["blind", 1],

        close: function () {
            debugger;
            var values = new Array();

            $(this).multiselect("getChecked").each(function (index, item) {
                values.push($(item).val());
            });
            $("input[id*=selectedValues]").val(values.join(","));
            document.getElementById("<%=hdnDepartment.ClientID %>").value = values;
            if (document.getElementById("<%=hdnDepartment.ClientID %>").value != "") {
                //$("#<%=Button1.ClientID %>")[0].click();
                $.ajax({
                    type: "POST",
                    url: "wfrmLeave_PermisssionReport.aspx/Populate",
                    data: "{}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (msg) {
                    }
                });
            }
        }
    })
    .multiselectfilter();
});

my method is:

[System.Web.Services.WebMethod]
public  void Populate()
{
    strQuery = "select * from tblhrims_employeedetail where  nvrresigned='No'";
    if (ddlBusinessUnit.SelectedItem.ToString() != "Select")
    {
        strQuery += "and nvrbusinessunit ='" + ddlBusinessUnit.SelectedValue + "' ";
    }
    if (hdnDepartment.Value != "")
    {
        string strDepartment = hdnDepartment.Value;
        string[] strarrDepartment = strDepartment.Split(',');
        strDepartment = "";
        for (int i = 0; i < strarrDepartment.Length; i++)
        {
            strDepartment += "'" + strarrDepartment[i] + "'" + ",";
        }
        strDepartment = strDepartment.TrimEnd(',');
        strQuery += "and nvrdepartment in(" + strDepartment + ")";
    }

    populateDropDown(strQuery, ddlEmployeeName, "nvrempname", "nvrempcode");
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:20:46+00:00Added an answer on June 11, 2026 at 7:20 pm

    i hope this helps you http://trentgardner.net/net/asp-net-webmethods-with-jquery-and-ajax/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery, I make these changes in the DOM: $(document).ready(function() { $('.editable').click(function() { var
I have a had a couple of instances that jQuery.Multiselect will not render correctly
I am using the following jQuery multiselect script on the select boxes on my
i have this code : $('body').live('mousemove mouseover', function () { $(#parent_task).multiselect({ selectedList: 4, click:
I am using jquery multiselect in my project,when user clicks on checkall then how
I'm usung the jQuery datepicker. In my EndDate textbox I'd like to use the
using jquery's .post i send do my php code an object that with var_dump
So, the latest dilemma I am facing: I am using jQuery DatePick (not DatePicker)
I am using jquery multiselect widget. I would like to uncheck all if all
I'm using the following jquery multiselect plugin ... How can I grab the selected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.