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.
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
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"
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
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("");
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
6 matches
Mail list logo