Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

friends i want to create a function in which we can pass single or multiple Id on button click.
can any one suggest me how i can create this function ?
Thanks & regards.
Hussain.
Posted
Comments
Karthik_Mahalingam 10-Feb-14 3:04am    
can u please add more info...

Hello Hussain,

If you want to do it in javascript,you can study the below article and follow

http://www.w3schools.com/js/js_obj_array.asp[^]

All the best:)Write back if you need any support.
 
Share this answer
 
i have seen ur provide url.but its not usefull for me.i want to pass multiple id from fuction dynamically in javascript fucntion.

C#
function image(thisImg) {
                     
            var img_1 = thisImg;
            var img_NEW = document.getElementById('img1');
            if (img_1 == "#") {
                img_NEW.src = 'Images/Under_Process.png';
            }
            else {
                img_NEW.src = 'Images/LUCKNOW/Images/' + img_1;
            }
            document.getElementById('hd_field').value = thisImg;
        }


This is my function.but i want to pass multiple id's through var thisImg onclick.
 
Share this answer
 
v2

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