رفتن به مطلب

ساخت نتایج بازیها مثل سایت ورزش 3


پست های پیشنهاد شده

پارسا جان ، اینجوری شد .

http://www.golestanlig.ir/%D8%AA%D8%B3%D8%AA3/

مقدار a رو به 0 و 1 تغییر دادم منتها به صورت پیشفرض هفته ای رو باز نمیکنه . من میخوام یک هفته رو به صورت تنظیم خودم نشون بده .

لینک به ارسال

این خروجی رو از کجا دریافت میکنید؟

همان مقداری رو که برای گزینه 1 گرفتید رو در div خروجی چاپ نمایید تا پیشفرض نمایش داده شود

لینک به ارسال

روش اول:

توضیحاتی که دادم مربوط به کدنویسی نمیشه

شما محتوا رو از کجا دریافت میکنید؟

همان مقدار محتوا را در بخش دوم چاپ کنید :)

لینک به ارسال

به صورت دستی وارد میکنم .


<ul id="prophlist" style="display:none;">
<li><table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">
<tbody>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 8 آذر ماه 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 2</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 2</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 1</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">سه شنبه 3 دي ماه 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: rgb(255, 0, 0);">لغو</span></span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خاان ببين</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
</tbody>
</table></li>
<li><table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">
<tbody>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 15 دي ماه 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 0</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 0</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">يکشنبه 17 دي ماه 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">2 - 1</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 1</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
</tbody>
</table></li>
<li><table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">
<tbody>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 22 آذر 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 4</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 1</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">2 - 0</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: rgb(255, 0, 0);">لغو</span></span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
</tbody>
</table></li>
<li><table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">
<tbody>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 29 آذر 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="color: rgb(255, 0, 0);"><span style="font-family: tahoma,geneva,sans-serif;">نا تمام</span></span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 0</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 1</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 0</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استفلال خان ببين</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
</tbody>
</table></li>
<li><table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">
<tbody>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 6 دي ماه 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان </span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">2 - 1</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 0</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">شنبه 7 دي ماه 1392</span></strong></span></span>
</td>
</tr>
<tr>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 1</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>
</td>
<td style="text-align: center;">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
<tr>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 0</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>
</td>
<td style="text-align: center; background-color: rgb(235, 235, 235);">
<span style="font-size:11px;"><span style="font-family: tahoma,geneva,sans-serif;">14</span></span>
</td>
</tr>
</tbody>
</table></li>
</ul>
<select id="choose">
<option value="1">هفته اول</option>
<option value="2">هفته دوم</option>
<option value="3">هفته سوم</option>
<option value="4">هفته چهارم</option>
<option value="5">هفته پنجم</option>
</select>
<div id="update"></div>
<script>
jQuery(document).ready(function($) {
$('#choose').change(function(event) {
a = $('#choose').val();
a = $('ul#prophlist li:nth-child('+a+')').html();
$('#update').html(a);
});
}); </script>

این کد کامل من هست . من میخوام یکی از هفته رو به صورت دلخواهم به صورت پیشنمایش بیاد .

لینک به ارسال

این کد رو اضافه کنید


$('#update').html($('ul#prophlist li:nth-child(1)').html());

نمونه


jQuery(document).ready(function($) {
$('#update').html($('ul#prophlist li:nth-child(1)').html());

  • امتیاز 2
لینک به ارسال

بقیه مسایل با خودتون هست

حالتهای دیگر را تست کنید

با فایرباگ ببینید خطا دارد یا نه

  • امتیاز 2
لینک به ارسال

اگه بخوام ، یه لیست کشویی اول داشته باشم و زیر مجموعه هر کدوم از گزینه ها یه لیست کشویی دیگه باشه که داخل هر گزینه تو زیر مجموعه یه جدول قرار داشته باشه ، ( دقیقا مثل عکس ضمیمه شده ) چبکار باید بکنم ؟post-148-0-98294200-1388650489_thumb.jpg

لینک به ارسال
ارسال شده در (ویرایش شده)

دوستان ، اگه زودتر پاسخ بنده رو بدن ، خیلی ممنون میشم ، چون کارم خیلی ضروری و عجله ای هست .

کل کدی که من الان تو سایتم استفاده میکنم و کار میکنه این هست .

<center><ul id="prophlist" style="display:none;">

<li>

<table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">

<tbody>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 8 آذر ماه 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 2</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 2</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 1</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">سه شنبه 3 دي ماه 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: rgb(255, 0, 0);">لغو</span></span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

</tbody>

</table>

</li>

<li>

<table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">

<tbody>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 15 آذر ماه 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 0</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 0</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva%( (9iWns-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">يکشنبه 17 آذر ماه 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">2 - 1</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 1</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

</tbody>

</table>

</li>

<li>

<table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">

<tbody>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 22 آذر 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 4</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 1</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">2 - 0</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><span style="color: rgb(255, 0, 0);">لغو</span></span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

</tbody>

</table>

</li>

<li>

<table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">

<tbody>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 29 آذر 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="color: rgb(255, 0, 0);"><span style="font-family: tahoma,geneva,sans-serif;">نا تمام</span></span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 0</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">3 - 1</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 0</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استفلال خان ببين</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

</tbody>

</table>

</li>

<li>

<table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">

<tbody>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 6 دي ماه 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان </span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">2 - 1</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 0</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">شنبه 7 دي ماه 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">1 - 1</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">0 - 0</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

</tbody>

</table>

</li>

<li>

<table border="1" cellpadding="1" cellspacing="1" style="width: 100%;">

<tbody>

<tr>

<td colspan="4" style="text-align: center; background-color: rgb(23, 54, 93);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;"><strong><span style="color: rgb(255, 255, 255);">جمعه 13 دي 1392</span></strong></span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال بندرگز</span></span>

</td>

<td style="text-align: center;">

<span style="font-family:tahoma,geneva,sans-serif;">----</span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">استقلال خان ببين </span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">پاس گرگان</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-family:tahoma,geneva,sans-serif;">----</span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شاهين بندرگز</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">همت گنبد</span></span>

</td>

<td style="text-align: center;">

<span style="font-family:tahoma,geneva,sans-serif;">----</span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">اميد گلستان</span></span>

</td>

<td style="text-align: center;">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

<tr>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">کشاورز علي آباد</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-family:tahoma,geneva,sans-serif;">----</span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">شهداي آق قلا</span></span>

</td>

<td style="text-align: center; background-color: rgb(235, 235, 235);">

<span style="font-size:12px;"><span style="font-family: tahoma,geneva,sans-serif;">14:00</span></span>

</td>

</tr>

</tbody>

</table>

</li>

</ul>

<p>

<select id="choose"><option value="1">هفته اول</option><option value="2">هفته دوم</option><option value="3">هفته سوم</option><option value="4">هفته چهارم</option><option value="5">هفته پنجم</option><option value="6">هفته ششم</option> </select>

</p>

<div id="update">

 

</div>

<p>

<script>

jQuery(document).ready(function($) {

$('#update').html($('ul#prophlist li:nth-child(6)').html());

$('#choose').change(function(event) {

a = $('#choose').val();

a = $('ul#prophlist li:nth-child('+a+')').html();

$('#update').html(a);

});

}); </script>

</p></center>

ویرایش شده توسط Parsa
لینک به ارسال

اون حالت عکسی که دادید با جی کوئری و ایجاکس هست که براسسا انتخاب ورودی از دیتابیس میاد جدول خروجی رو نمایش میده

  • امتیاز 1
لینک به ارسال

خوب الان من وقتی میخوام چند تا از این لیست کشویی ها داخل چند ابزارک مختلف قرار بدم ، به جز نمایش جداول در ابزارک اولی ، در ابزارکهای بعدی ظاهر نمیشه !!!

چیکار باید کنم ؟

لینک به ارسال

در بخش جاوااسکریپت

سلکتور ها را تغییر دهید

برای نمونه


$('#update2').html($('ul#prophlist2 li:nth-child(6)').html());

همچنین برای دیگر کدها

بخوانید

http://api.jquery.com/id-selector/

  • امتیاز 2
لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...