Hi
I'm using a cms:input tag in some javascript code.
As you can see I'm calling a variable into the value section of the cms:input.
The problem is that everything between "" quotes is exactly showed as it stands in the code.
For example: if the variable 'inputExtra' has a value of 'SomeInfo', the input field on the website has a value of inputExtra in stead of SomeInfo.
If I'm doing this whit an inputfield without cms: tag, it works fine, the actual value of the variable is shown.
Do you guys have some experience with this?
thanks!
I'm using a cms:input tag in some javascript code.
- Code: Select all
$('#listExtra').append('<cms:input name="extra" type="text" value=" '+inputExtra.name+' " />');
As you can see I'm calling a variable into the value section of the cms:input.
The problem is that everything between "" quotes is exactly showed as it stands in the code.
For example: if the variable 'inputExtra' has a value of 'SomeInfo', the input field on the website has a value of inputExtra in stead of SomeInfo.
If I'm doing this whit an inputfield without cms: tag, it works fine, the actual value of the variable is shown.
Do you guys have some experience with this?
thanks!