View Single Post
  #5  
Old 05-05-2015, 04:59 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Add default value to TextArea

The product short decription text area in my version has an ID of "descr".

Assuming your code above is good, I think you would need:
$("#descr").val(result.exampleMes sage);

When adding javascript to smarty tmeplates, you need to wrap it with {literal}
{/literal}
tags on either side.

It might be best for you to hire a developer to do this for you, if you do not understand how to go further with these examples. It will save you time, and time is money.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote