|
I think I have seen something very similar to this on various interviews.
either way the following should get you started:
http://jsfiddle.net/qR4uJ/3/[^]
I would recommend that you fix your images because they are the cause behind the "jumpy" appearance of the checkbox when you click on things.
as I think about it more I would recommend stacking images. have the checkbox as your background and then a check mark as an img tag that can sit on top of it. then you can use the fadeIn[^] and fadeOut[^] parts of jQuery.
best of luck.
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
Hi, I’m using JQuery version 1.8.11 with IE10. I have a table with a simgle row. the table id is #listTable, the <tr>id is #listTableRow and the <td> id is #days. The row has a number of cells and in each cell there is a dropdown list with the same id: #searchString. I want to be able to select the the dropdown list in the third cell and set its option to option:first.. I’ve been able to select the td with the code below but not the specific dropdown list.. How can I select the 3rd dropdown list in a table?
<script type="text/javascript">
$(document).ready(function () {
var nos = $('#listTable #searchString').length;
$.each($checkboxes, function () {
if ($(this).is(':checked')) {
$('#listTable #days:nth-child(3)').css('border', '2px dashed blue');
});
});
</script>
|
|
|
|
|
why not look at it backwards??
assign a class to the item that you want and then iterate through your collection till you find it associated to the parent you are expecting.
$('.someClassName').each(function(){
});
as if the facebook, twitter and message boards weren't enough - blogged
|
|
|
|
|
I wanted to do was this: 'oel' array elements, but here you have wrote the script 'oel' elements to
'rec', such as identification and definition could not figure out the problem of pass from a
series of rec. Is it possible to success this javascript? Do you have any idea on this issue?
Passing from 'oel' array element to 'rec' array elements that I want to do this.
|
|
|
|
|
Please don't assume that dusty_dex will just happen to see this message. Post it in reply to the one you are referring to.
Use the best guess
|
|
|
|
|
just prefer british english is to American english is very unintelligible.I turned my question to him because of he is not just a foreign on topic.. I'm really sorry for that.
modified 15-Apr-13 10:36am.
|
|
|
|
|
Anlamıyorum!
Use the best guess
|
|
|
|
|
|
Just about all your comments. I appreciate that English is not your native language, but you may like to find a better translator.
Use the best guess
|
|
|
|
|
Hello Hakan,
Your profile says you are living in USA, but obviously you aren't English speaking person.
So where are you?
It might be easier for me to help you understand if I can translate English to your language.
Your code makes no sense.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
So it is not possible to perform in javascript language.. I'm always playing lotto everyweek, and i wanted create a jucidious simple combination wiriting
modified 14-Apr-13 5:08am.
|
|
|
|
|
Of course it *is* possible.
What is not possible is the understanding.
Because of human language.
(lost in translation)
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
if(oel[i] != arrIns[11]) {
arr = new Array(35);
arr[i] = oel[i];
console.log(Array.isArray(arr));
}
delete oel[i];
These are is to following lines of question..
other numbers that I get to do again, I can not make any other I've ever wanted in an array. an array that 49 elemented to 35 elemented array wanted to assinging and unlucky enough to get a heap of numbers that I wanted to do...
|
|
|
|
|
I do not know exactly but I think that your knowledgeable is enough on this job. Might I asked that you question "How old are you?"...
|
|
|
|
|
Younger than my feet & older than my head.
> 40
re: console.log
What are you using for javascript development?
now you answer my question.
Where are you? Hungary/Turkey/Bulgaria...?
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
modified 14-Apr-13 6:29am.
|
|
|
|
|
I am living in turkey.. You are older than me 1 year I'm 39 years old. Me hakan and Glad to meet you Thankyou for everything... and issue is not computer literature word.
modified 16-Apr-13 3:05am.
|
|
|
|
|
Hello.
I am a bit older than 40.
the greater than symbol (>) was a clue.
Benim kod tamam mı?
Have a go with Bing translator www.bing.com/translator
Proje kodu Yöneticiler üzgün değil deneyin.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
modified 15-Apr-13 16:09pm.
|
|
|
|
|
Are you trying to copy the numbers so that you start another week's draw?
You can't use delete that way for arrays elements.
But your code still doesn't make any sense. There are no shortcuts to comparing *all* elements of one array using one command.
You need to compare each element of arrIns one by one, with oel[i] then copy *that element* to arr
var arr = [];
var c = 0;
for (var i=0; i < oel.length; i++) {
var e = 0;
while (e < arrIns.length) {
if (oel[i] != arrIns[e]) {
arr[c] = oel[i];
c++;
}
e++;
}
}
oel.length = 0;
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
modified 15-Apr-13 6:07am.
|
|
|
|
|
I just got a 39, in march 02 ..
I think there is a little misunderstanding here. 1 ... 49 number of the remaining elements of the numbers array of the last 3 weeks trying to get the lucky numbers, I was try to do, just as.
if(oel[i] != arrIns[11])
{ oel[i]; };
delete oel[i];
Quote:
that is exactly the last 3 weeks I wanted to get back remaining array of numbers. The number that is 49 - 18 = 31
|
|
|
|
|
[ I am mostly working from my memory, and it is getting difficult. ]
Ben çok benim hafızasından çalışıyorum ve bu zor gidiyor.
Yani, bu ekler:
document.write(arr.toString());
[ Let me know if that output is what you expected. If not you will have to try posting your current code, so that I can see it all in one go, and not have to try an put this all together in my head ]
Bu çıktı beklediğiniz ise bizi. Aksi takdirde, geçerli deftere nakil ki ben her tek seferde görmek ve bir yerine hep birlikte kafamın içinde denemek zorunda değil denemek gerekecek.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
document.write(arr.toString());
I have just wanted to do this.
var arrIns = [ "1","21","24","28","42","48",
"12","23","34","36","37","46",
"3","18","19","25","44","45" ];
var arrLot = [];
var arr = [];
var add = 0;
for(var i=1; i<50; i++)
{
arrLot[i] = i;
if(arrLot[i] != arrIns[0])
if(arrLot[i] != arrIns[1])
if(arrLot[i] != arrIns[2])
if(arrLot[i] != arrIns[3])
if(arrLot[i] != arrIns[4])
if(arrLot[i] != arrIns[5])
if(arrLot[i] != arrIns[6])
if(arrLot[i] != arrIns[7])
if(arrLot[i] != arrIns[8])
if(arrLot[i] != arrIns[9])
if(arrLot[i] != arrIns[10])
if(arrLot[i] != arrIns[11])
if(arrLot[i] != arrIns[12])
if(arrLot[i] != arrIns[13])
if(arrLot[i] != arrIns[14])
if(arrLot[i] != arrIns[15])
if(arrLot[i] != arrIns[16])
if(arrLot[i] != arrIns[17])
if(arrLot[i] != arrIns[18])
if(arrLot[i] != arrIns[19])
{ arr[add++] = arrLot[i];}
}
var taken = new Array(49);
for (var i=49; i>0; i--) taken[i]=false;
var lucky = [];
var z = 0;
do{
var q = Math.round(31 * Math.random());
if(!taken[arr[q]]) {
lucky[z] = arr[q];
taken[arr[q]] = true;
document.write(lucky[z] + " ");
z++;
}
}while(z<6);
modified 16-Apr-13 8:52am.
|
|
|
|
|
[ But, isn't arrIns just going to keep getting longer every week? ]
Ama arrIns sadece her hafta uzun elde tutmak için gitmiyor?
[ Can you please explain what purpose is of the arrLot array, does it replace oel from last code you gave?.]
Lütfen arrLot dizi oel verdiği son kodundan yerine yok amaç ne olduğunu açıklayabilir misiniz?
[ One thing I am not understanding, and I have kept asking you information about, is the carry over from one week to another. That's what your code appears to be doing, but without a clear understanding, I cannot begin to grasp the way you intend manage this code any length of time. Please use the translator and give me an over view of the whole lotto process you are trying to achieve. And the methods you are using to develop with. ]
Bir şey ben değil anlamak, ve hakkında bilgi isteyen tutmuş, taşıma üzerinden bir hafta başka olduğunu. Bu ne yapıyor olması kodunuzu görünür, ama net bir anlayış olmadan, ben uzun süre bu kodu yönetmek istediğiniz şekilde kavramak başlar olamaz. Çevirmen ve vermek beni bir yere görüntülemek tüm Loto süreci size ulaşmak için çalışıyoruz kullanın lütfen.
Ve ile geliştirmek için kullandığınız yöntemleri.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
modified 16-Apr-13 13:54pm.
|
|
|
|
|
Yes.. You are working really hard issue on!.. This is really hard to comes true in JavaScript language.
|
|
|
|
|
[ I was thinking back to my first reply to this thread of yours: ]
Iyi, ben bu konuyu senin ilk zaman cevap geri düşünüyordum:
Reading-a-text-file-in-JS
[ and thought that maybe you intend to use external file with previous week's data, using string data. Yes?]
ve düşündüğünüz hafta önceki verileri, dış dosya kullanılacak dize verileri kullanarak belki düşündüm.
Evet?
[ Anyhow, keep me informed of any problems. ]
Her neyse, bana herhangi bir sorunları haberdar tutmak.
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|
|
[ I originally asked you (in your earlier posts) ]
Başlangıçta (önceki mesaj) sordum
Q1. nasıl ne zaman rasgele şanslı numaraları öncekilerin yerine üretilen karar veriyorsunuz?
S2. Yeni piyango numarası + şanslı numaraları (otomatik olarak) geçerli tarihi & zamanında üretilmektedir?
[ The problem as I see it, is that you need some *automatic* method to keep track of the current week's lucky numbers, and discard the oldest. Week-2
I did it that way with my BASIC program 20+ years ago so that I wouldn't need to keep adjusting the code for extra 6 numbers every week. ]
Sorun görüyorum, bazı ihtiyacınız olduğunu * otomatik * yöntem geçerli haftaki şanslı numaralar izlemenize ve en eski atmak için. Hafta-2
Ben fazladan 6 sayı kodunu ayarlama tutmak gerek olmaz bu şekilde temel programım ile 20 + yıl önce her hafta yaptım.
[ is the translator good? ]
Çevirmen iyi mi?
"It's true that hard work never killed anyone. But I figure, why take the chance." - Ronald Reagan
That's what machines are for.
Got a problem?
Sleep on it.
|
|
|
|