Search the Community
Showing results for tags 'actions'.
-
I have this issue with a function where I want to execute 4 different actions inside an if statement. My code looks like this: function deltagare(){var myTextField1 = document.getElementById('namn');var myTextField2 = document.getElementById('epost'); if(myTextField1.value != "" && myTextField2.value != "")document.getElementById("deltagare-list").value+=myTextField1.value+" "+"("+myTextField2.value+")"+"\n",document.getElementById("deltagare-emaillist").value+=myTextField2.value+",",document.getElementById('namn').value="",document.getElementById('epost').value=""; elsealert("Skriv in både namn och epost!"); } In this way only the first action gets executed. How can I add the other ones properly?
-
I have one button, and I need it to perform 2 actions, how would I go about doing this?http://webapps.easy2.com/ce/ext1104/messages/iris_messages.htmlI need to have the bus slide in, then have the phone message appear.I am more of a visual learner, so to have an example would most definitely help.