This is for my Sharepoint edit form: I need to be able use the asp.net TextBox in my javascript:
<asp:TextBox runat="server" id="ff17{''}" text="{@Container_x0020_Qty}" __designer:bind="{ddwrt:DataBind('u',concat('ff17',''),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Container_x0020_Qty')}" />
I'm trying to read it in my javascript as such:
var CCID = document.getElementById("ff17");
This doesn't work...
However if I copy what the page renders as the form's Id:
var CCID = document.getElementById("ctl00_m_g_64200ded_b593_468b_bca5_0ea023581b8a_ff17");
This works!
Is there a way I can get this to work without having to always figure out the ct portion?