chrisp Posted June 29, 2007 Report Posted June 29, 2007 (edited) Kāds var uzrakstīt, kādai jāizskatās funkcijai, kas no select ievietotu datus textarea. <select multiple size='15' name='grouplist1' id='grouplist1' class='textbox' style='width:150' onClick=\"funkcijasnosaukums('page_content','grouplist1');\">\n"; for ($i=0;$i < count($group1_user_id);$i++) echo "<option value='".$group1_user_id[$i]."'>".$group1_user_name[$i]."</option>\n"; echo "</select> <tr> <td valign='top' width='100' class='tbl'>".$locale['432']."</td> <td width='80%' class='tbl'><textarea name='page_content' id='page_content' cols='95' rows='15' class='textbox'>$page_content</textarea></td> </tr> Edited June 29, 2007 by bubu
bubu Posted June 29, 2007 Report Posted June 29, 2007 Nesaprotams topika nosaukums. Izdomā labāku un atsūti man, ja gribi tik no Drazas ārā. http://www.catb.org/~esr/faqs/smart-questions.html Edit: Nosaukums nomainīts, atliku topiku atpakaļ.
Stopp Posted June 30, 2007 Report Posted June 30, 2007 Ņipoņel, kādus datus? Ja selectā izvēlētā optiona vērtību, tad ar selecta_elements.value var vienkāršie tiem piekļūt.
chrisp Posted June 30, 2007 Author Report Posted June 30, 2007 Selectaa man atrodas useri, vajag lai uzspiezhot uz usera vinju iemet page_contentaaa.
chrisp Posted June 30, 2007 Author Report Posted June 30, 2007 Doma pareiza, bet vajag taa, lai katru reizi kad es uzspiezhu uz vajadziigaa vaarda tas katru reizi pievienotos klaat. Respeltiivi lai nepaarklaajaas. Piemeers Jānis (no selecta) gāja uz tirgu, un viņš satika Pēteri (no selecta).
Val Posted June 30, 2007 Report Posted June 30, 2007 (edited) document.getElementById('textarea').innerHTML += ' ' + this.value; un piemet klāt pirms Jankas vēlvienu option ar tukšu value. Edited June 30, 2007 by Val
chrisp Posted June 30, 2007 Author Report Posted June 30, 2007 (edited) Paldies, viss strādā... Edited July 2, 2007 by chrisp
chrisp Posted July 2, 2007 Author Report Posted July 2, 2007 (edited) Vai var izdarīt tā, lai tad, kad es uzspiezhu uz selecta, veertiiba kas tiek paarnesta uz textboxu izskatiitos shaadi: <b>Janis</b>, lai nav katrai veertiibai jaaraxta <b></b>, bet tas notiktu automaatiski??? Nekaadiigi nesanaak pievienot. Izdodas izveidot kko shaadu: b> Janis /b>, tachu kad mneginu pi8elikt < sanak eroors Edited July 2, 2007 by chrisp
chrisp Posted July 10, 2007 Author Report Posted July 10, 2007 (edited) Varbūt ir iespējams aizstāt arī šo simbolu? => ' <= Ar citu? Edited July 10, 2007 by chrisp
andrisp Posted July 10, 2007 Report Posted July 10, 2007 Luku tev palīdzēs: http://leftlogic.com/lounge/articles/entity-lookup/
Recommended Posts