Jquery Script and ColdFusion -
i have jquery script integrate coldfusion app found in 1 of articles on site. simple script inserting text @ cursor in form field. it's must simpler javascript solutions i've found.
jquery("#btn").on('click', function() { var caretpos = document.getelementbyid("txt").selectionstart; var textareatxt = jquery("#txt").val(); var txttoadd = "stuff"; jquery("#txt").val(textareatxt.substring(0, caretpos) + txttoadd + textareatxt.substring(caretpos) ); }); the problem i'm having coldfusion sees jquery form names, #btn -or- #txt, invalid constructs. guess expecting coldfusion variable there.
is there anyway around this?
double pound sign. ##btn or ##txt
Comments
Post a Comment