View Full Version : Assigning checkbox ID based on remote data?

4 Jul 2011, 5:14 AM

Im trying to integrate an extjs grid into a CGI html screen that uses jquery. Im replacing an html table with the extjs grid. I need to keep as much of the pre-existing functions as possible.

Html buttons then perform jquery functions that use the data that is built into the fields id. For Example(id="%divno%!%prodno%") where the %...% data is replaced with remote data. The jquery functions then derive division numbers and product numbers from the id attribute to perform ajax and other functions.

Is there a way where I can assign the id and name attributes based on the remote data being loaded into the field at load time. The data will be unique, so there will be no id conflicts.