Posts tagged with javascript:

How to add new line breaks in textarea using Javascript ?Would you please give me advice how to dynamically insert a new lines in textarea ? I tried to add <br /> and later \n but it doesn't work.

Meaning of Default, Preset, Fallback, Callback, Rollback value - differenceWhat is the meaning of Default value, Preset value, Fallback value, Callback value and Rollback value in software development ?

onSubmit return false not working - submit form by JavascriptI need to submit the form by using Javascript, but it seems the functions in onSubmit event don't work. When I click on Send link, the form is submitted, but I will not...

Set cookies to expire in hours, minutes, seconds - JavascriptI am using a javascript function, that allows to set after how many days cookies should expire: var date=new Date(); var expirydays=30;...

Javascript alert popup with two buttons OK / Cancel or Yes / NoHow can I add another button to javascript alert popup window, to have two buttons with values OK / Cancel or Yes / No ?

Get cursor postion in characters in textarea - JavascriptHow can I get the current cursor position in textbox / textarea by using Javascript function ?

Allow to type / enter only numbers in input textbox - JavascriptHow to allow to enter only the number values into input textbox or textarea by using javascript ?

Keyup, Change, Blur - multiple jQuery events for same functionI need to call the function when user is typing into input field, but also when he changed the value without typing it, for example with copy and paste. How should I modify...

Check if document getElementById or getElementsByName existsHow can I check if input field or other element exists by using document.getElementById or document.getElementsByName, before trying to get values ?

Get TOP and LEFT position of image element - JavascriptHow can I get the position of image element from the top and left side by Javascript function ? Would you please provide an example that work ?
2026 AnswerTabsTermsContact us