[jQuery] Re: How to get the value of List and concatenate with JQUERY

2009-01-26 Thread Manowar721
This line above $("ul#developerul > li").addClass("getValues"); does nothing. It was part of another way I was going to suggest, then forgot to erase it. Sorry for the confusion. ,Manowar721 On Jan 26, 8:59 am, Manowar721 wrote: > As long as, I am understanding what you are trying to do.

[jQuery] Re: How to get the value of List and concatenate with JQUERY

2009-01-26 Thread Eric Garside
If I understand correctly, given the list you've shown, you want an alert of the value of the you just clicked, yes? If so: $(function(){ $('#developerul > li').click(function(){ var value = $(this).attr('value'); alert(value); // Or do whatever you wanted to do with javascript he

[jQuery] Re: How to get the value of List and concatenate with JQUERY

2009-01-26 Thread Manowar721
As long as, I am understanding what you are trying to do...this should work. $(document).ready(function(){ var values = new Array(); $("ul#developerul > li").addClass("getValues"); for (x=0;x<=3;x++){ values[x] = $("ul#developerul > li").eq(x).attr("value"

[jQuery] Re: How to get the value of List and concatenate with JQUERY

2009-01-25 Thread Ami
It's is a bug. I copy&paste you code, and I see an alert "123". You can simple try it, buy paste this code in FireBug console in any website that support jQuery (like jQuery.com) On Jan 23, 5:14 pm, nk wrote: > Hi Ami, > > Thanks for your response. > I am still not getting the value. > > Plea

[jQuery] Re: How to get the value of List and concatenate with JQUERY

2009-01-23 Thread nk
Hi Ami, Thanks for your response. I am still not getting the value. Please let me know what is wrong with the following code.I am getting a blank alert message at the beginning. $(document.body).prepend("
  • abc
  • def
  • ghi
");

[jQuery] Re: How to get the value of List and concatenate with JQUERY

2009-01-22 Thread Ami
My javascript syntax is better than my English syntax, So i hope that you can understand it $(document.body).prepend("abcdefghi"); var result=''; $.each ( $("#theUl").children(), function () {result+=($(this).attr('id'))} ); alert(result); Good luck, Ami On Jan 23, 12:38 am, nk wrote: > Hi Al