0
$(document).ready(function() {
    //calling procedure which displays list of items by default.
    DisplayList(2, '2', '2', 0);
});

DisplayList(2, fromDate, toDate, selectedvalue) {
//parameter 2 is passed for procedure
}

function Functioncalling {
    // fromDate and toDate values from asp textbox
    DisplayList(2, fromDate, toDate, selectedvalue);
}

fromdate and todates has 'year' value. loss of day and month values as well as different year which is not selected. when DisplayList from function is called.

Please help me out to get . Thank you

1 Answer 1

1

if DisplayList(2, fromDate, toDate, selectedvalue) {...} is kind of declaration you can not use a number as a parameter name 2;

Sign up to request clarification or add additional context in comments.

1 Comment

I want to pass fromdate and todate to DisplayList function. Eg : if i pass 2014-08-01 and 2015-01-01 then i will get fromdate as 2001 and todate as 2013. But i need 2014-08-01 and 2015-01-01 for fromdate and todate. parameter 2 is not a problem. i pass 2 to procedure not to function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.