ixcese Posted April 26, 2011 Share Posted April 26, 2011 hello , im building right now an replay box which is suppose to serve the user to write a post. now , i have one question , i want to make buttons for smiley's so the poster can add smiley's where ever he want in hes post , so i created an function what suppose to add smiley and here is the code: function addSmiley(){ document.getElementById('ID').value = document.getElementById('ID').value+""; } the problem is , if the poster want to add the smiley in the middle of the post it can't be. so my question is how i can get the position of the pointer so i can add the smiley in it's place. regards , Mor. Quote Link to comment https://forums.phpfreaks.com/topic/234765-java-script-form-box-positioning/ Share on other sites More sharing options...
Adam Posted April 26, 2011 Share Posted April 26, 2011 This is a very common question with lots of solutions you can find through Google. If you run into any problems implementing one of them though, I'll be happy to help... Quote Link to comment https://forums.phpfreaks.com/topic/234765-java-script-form-box-positioning/#findComment-1206554 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.