Is it possible to pass a form field value to a jQuery client script?
Basically I have successfully implemented jQuery dialogue so that when a user clicks on a repeater row a jQuery dialogue appears containing another form. At present there are no URL parameters passed to the form in this event. However, I'd like to pass a URL parameter through as part of the call.
The repeater row basically contains user details, and the jQuery dialogue opens a business card of sorts. I'd like to pass jQuery the employee ID field in the table that is used for the repeater.
I've tried adapting the following jQuery code:
Code: Select all
$("#modalIframeId").attr("src","/ufsint/ufsmain?formid=CONTACT_BUSINESS_CARD&P1=123456789");
Code: Select all
$("#modalIframeId").attr("src","/ufsint/ufsmain?formid=CONTACT_BUSINESS_CARD&P1=" + tables.EMPLOYEES_TBL.EMPLOYEE_ID.value);
Any assistance would be greatly appreciated.
Tom