We help IT Professionals succeed at work.
Get Started

Declare value of variable and pass it to form value. (modal window/jquery)

Aleks
Aleks asked
on
2,329 Views
Last Modified: 2016-02-25
Hi,

I am trying to create a modal window to insert a record in my page.
I can call the modal window just fine. This is the link to the code:

http://jsfiddle.net/amucino/eswvwhoe/8/

 Unfortunately when running it in jsfiddle its not showing the actual value of the parameter I am passing (See screenshot of local code). Here it works fine. And shows : 786

 the code to show it though is:  <div class="modal-body edit-content"></div>

 I am not familiar with jquery so I am not sure how to save that value into a variable I can then use to make my own code and call it for example using :  <%=request("variablenm")%>

 Then I can post the form to page.asp where it will be processed.  So it looks like all I am missing is simply saving the value of the parameter into a variable.

And also as you can see there is a form, a target in the form and a submit button.
The close button works but when I click 'submit' nothing happens.
modal-screenshot.PNG
Comment
Watch Question
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2017
Commented:
This problem has been solved!
Unlock 1 Answer and 43 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE