June 28, 20197 yr All questions below are just for learning purpose,asking questions is a good thing,im not experiencing any problem,everything in my website is working perfectly fine,i can use other alternative. 1)When I type my text into a container(div,nav,etc),if the text is too long,it will flow out of the cointainer.Is this how it works???Im expecting it to start a new line. 2)In my previous post,BrowserBugs,you said that i cant reset the form cause i cleared the values,but actually i can reset the form.Its just that i cant submit the form,cause they say i have not filled in the required fields,which i did,so what is actually happening?Again,ill say it again,the fields have been FILLED,the value is there,thats why i cant accept your previous answer. 3)I still cant get my form object using function in javascript,as said in my previous post.Is it wrong with my code or is something wrong with the app/computer,etc? Im sorry for my stupid question,but im really a beginner and i need help,so please be patient.... Again,i say everything is solved,but i just want to know why this problems i used to have is occuring,so please help...
July 1, 20197 yr On 6/28/2019 at 1:09 PM, Cheah Hsun Teik said: 1)When I type my text into a container(div,nav,etc),if the text is too long,it will flow out of the cointainer.Is this how it works???Im expecting it to start a new line. By default text will automatically wrap unless you tell it not to.
July 2, 20197 yr On 6/28/2019 at 1:09 PM, Cheah Hsun Teik said: 2)In my previous post,BrowserBugs,you said that i cant reset the form cause i cleared the values,but actually i can reset the form.Its just that i cant submit the form,cause they say i have not filled in the required fields,which i did,so what is actually happening?Again,ill say it again,the fields have been FILLED,the value is there,thats why i cant accept your previous answer. No idea, it shouldn't. <form> Username: <input type="text" name="name" id="name" required value="Bob"> <input type="submit" value="Submit"> <input type="reset" value="Reset"> <button type="button" id="clear">Clear</button> </form> <script> document.getElementById("clear").addEventListener("click", clearFm); function clearFm() { document.getElementById("name").value = ""; } </script> Edited July 2, 20197 yr by BrowserBugs
Create an account or sign in to comment