<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[טיפול באלמנט jquery]]></title><description><![CDATA[<p dir="rtl">יש לי אובייקט SELECT שאני רוצה למחוק את כל הOPTION שבו, באמצעות jquery.<br />
התחביר למחיקה כזאת היא:</p>
<pre><code>$("#id_select option").remove();
</code></pre>
<p dir="rtl">אממה, שאני חייב לדעת את הid של האובייקט רק על פי הclass.<br />
אבל אח"כ אני לא מצליח למחוק את כל הoptions, משהו בסיינטקס לא ברור לי.</p>
<pre><code>var x = document.getElementById(id_select);
          x = x.concat(" option")
          $(x).remove();
</code></pre>
<p dir="rtl">אודה לעזרתכם המהירה</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 21:53 (+03:00)</em></p>
]]></description><link>https://tchumim.com/topic/1262/טיפול-באלמנט-jquery</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 17:28:05 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/1262.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Jan 2018 11:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:04 GMT]]></title><description><![CDATA[<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%93%D7%95%D7%93" aria-label="Profile: דוד">@<bdi>דוד</bdi></a> ל.ט.</p>
<blockquote>
<p dir="rtl">היי שניה אחרי העלאה ערכתי ואתה מצטט בלי להסתכל...<br />
וגם אם זה לא עבד זה ענה על השאלה... גם הלשון "ככה לא עובד" נשמעת כאילו זה באג בJS... זה פשוט בנייה של סלקטור לפי ID.<br />
ההבדל בין גרש בודד לכפול הוא עניין של העדפה וענייין של פרקטיקה מתי למשל שיש לך בתוך הטקסט גרש כפול אז תעדף לעטוף בבודד כדי להימנע משבירה או מהוספת לוכסן.<br />
היום (ES6 שאוטוטו תוך מאה שנה נכנס סופית) יש סוג חדש: ` שזה מאפשר להכניס לתוך הטקסט את שתי סוגי הגרשים, וגם לשתול משנים בגוף המחרוזת (בלי ה+ שיש בדוגמה שלך).</p>
</blockquote>
<p dir="rtl">עניין של שניות... אני ראיתי את הדוגמה שלך בלי ה#, ועד שלחצתי על "ציטוט" כבר הוספת את הסולמית... אל תיפגע... :roll:<br />
תודה על ההסבר.</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב19/05/2017 09:30 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8583</link><guid isPermaLink="true">https://tchumim.com/post/8583</guid><dc:creator><![CDATA[code.net]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:04 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:03 GMT]]></title><description><![CDATA[<p dir="rtl">היי שניה אחרי העלאה ערכתי ואתה מצטט בלי להסתכל...<br />
וגם אם זה לא עבד זה ענה על השאלה... גם הלשון "ככה לא עובד" נשמעת כאילו זה באג בJS... זה פשוט בנייה של סלקטור לפי ID.<br />
ההבדל בין גרש בודד לכפול הוא עניין של העדפה וענייין של פרקטיקה מתי למשל שיש לך בתוך הטקסט גרש כפול אז תעדף לעטוף בבודד כדי להימנע משבירה או מהוספת לוכסן.<br />
היום (ES6 שאוטוטו תוך מאה שנה נכנס סופית) יש סוג חדש: ` שזה מאפשר להכניס לתוך הטקסט את שתי סוגי הגרשים, וגם לשתול משנים בגוף המחרוזת (בלי ה+ שיש בדוגמה שלך).</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 23:40 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8582</link><guid isPermaLink="true">https://tchumim.com/post/8582</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:03 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:02 GMT]]></title><description><![CDATA[<p dir="rtl"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%93%D7%95%D7%93" aria-label="Profile: דוד">@<bdi>דוד</bdi></a> ל.ט.</p>
<blockquote>
<pre><code>$('#' + id_b + ' option').remove();
</code></pre>
</blockquote>
<p dir="rtl">ככה לא עובד, רק עם '#' לפני id_b.<br />
עיין בדוגמה האחרונה שהעליתי.</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 22:25 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8581</link><guid isPermaLink="true">https://tchumim.com/post/8581</guid><dc:creator><![CDATA[code.net]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:02 GMT]]></title><description><![CDATA[<p dir="rtl">תודה לכל מי שרצה לעזור ולא הספיק..... <a href="https://jsfiddle.net/qsokj0gv/3/" target="_blank" rel="noopener noreferrer nofollow ugc">https://jsfiddle.net/qsokj0gv/3/</a><br />
ואשמח להשכיל: מה ההבדל בין גרשיים לגרש בודד בגאווה סקריפט?</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 22:24 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8580</link><guid isPermaLink="true">https://tchumim.com/post/8580</guid><dc:creator><![CDATA[code.net]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:02 GMT]]></title><description><![CDATA[<pre><code>$('#' + id_b + ' option').remove();
</code></pre>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 22:23 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8579</link><guid isPermaLink="true">https://tchumim.com/post/8579</guid><dc:creator><![CDATA[dovid]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:02 GMT]]></title><description><![CDATA[<p dir="rtl">לא סגרתי את הפונקציה<br />
<a href="https://jsfiddle.net/qsokj0gv/2/" target="_blank" rel="noopener noreferrer nofollow ugc">https://jsfiddle.net/qsokj0gv/2/</a><br />
העליתי שוב</p>
<p dir="rtl">אודה לעזרתכם</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 22:18 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8578</link><guid isPermaLink="true">https://tchumim.com/post/8578</guid><dc:creator><![CDATA[code.net]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:02 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://jsfiddle.net/qsokj0gv/1/" target="_blank" rel="noopener noreferrer nofollow ugc">https://jsfiddle.net/qsokj0gv/1/</a></p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 22:15 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8577</link><guid isPermaLink="true">https://tchumim.com/post/8577</guid><dc:creator><![CDATA[code.net]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:01 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://jsfiddle.net/AvCohen/qsokj0gv/" target="_blank" rel="noopener noreferrer nofollow ugc">https://jsfiddle.net/AvCohen/qsokj0gv/</a></p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 21:58 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8576</link><guid isPermaLink="true">https://tchumim.com/post/8576</guid><dc:creator><![CDATA[avraham]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:01 GMT</pubDate></item><item><title><![CDATA[Reply to טיפול באלמנט jquery on Mon, 29 Jan 2018 11:45:01 GMT]]></title><description><![CDATA[<blockquote>
<p dir="rtl">אממה, שאני חייב לדעת את הid של האובייקט רק על פי הclass.</p>
</blockquote>
<p dir="rtl">לא הבנתי את המשפט הזה.<br />
תעלה דוגמא יותר מפורטת</p>
<p dir="rtl"><em>פורסם במקור בפורום CODE613 ב18/05/2017 21:54 (+03:00)</em></p>
]]></description><link>https://tchumim.com/post/8575</link><guid isPermaLink="true">https://tchumim.com/post/8575</guid><dc:creator><![CDATA[avraham]]></dc:creator><pubDate>Mon, 29 Jan 2018 11:45:01 GMT</pubDate></item></channel></rss>