jquery - How to add javascript string value to a value in hidden field in ASP -


वेबपेज में मुझे निकटतम उपयोग करना निम्नानुसार था:

  & lt; script & gt; $ ( '# शीर्षक') पाठ (movie.title)। & Lt; / स्क्रिप्ट & gt;   

यह काम करता है के साथ कहता है:

  & lt; h1 id = "title" & gt; & lt; / h1 & gt;   

हालांकि मैं इसे एस्प छिपे हुए फ़ील्ड जैसे मान में इस्तेमाल करना चाहूंगा उदा।

मैं एएसपी और जावास्क्रिप्ट और jquery के लिए नया हूँ ताकि कोई सलाह काफी सराहना की।

उपयोग करने का प्रयास करें:

  $ (" [id $ = 'name'] ")। Val (movie.title);    

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -