Skip to content
Advertisement

Reading same textbox value each time from jquery popup

I have JQuery Popup whchi has a textbox. JQuery Popup trigger on OnClick event of a Checkbox.

HTML

JavaScript

My effort is to receive textbox value in server side C# Code and display it using an other jquery popup

Server Side Code C#

JavaScript

Problem

My server side code can receive JQuery popup textbox value but every time i get the same value which was entered at first time after page load. I thhink there is some variable initialization but could not figure out

enter image description here

JQuery

JavaScript

Requirement

Value receive at server side C# should be same as per textbox input value each time

Advertisement

Answer

I did not initialize my dialog i.e popupdiv

put $("[id*=popupdiv]").empty();just before return statement of JQuery Script

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement