473,473 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get the values from Jquery and assign it for hiddenfield &save it into the DB

1 New Member
Actually I am developing one project . In that there are jquery for button

Expand|Select|Wrap|Line Numbers
  1. <script>
  2.             $(document).ready(function () {
  3.             $("#btnYes").click(function () {
  4.                 $("#btnYes").html("Counted");
  5.                 $("#<%= hdnYesNoAnswer.ClientID %>").val("Yes");
  6.                 $('#txtComment').focus();
  7.             });
  8.         });
  9. </script>
When I clicked the #btnYes , it changes "Clicked " .And In that page I added one hiddenfield called "#hdnYesNoAnswer" So now what I want is , get the value(Yes) from that jquery function and assign it for hiddenfield(#hdnYesNoAnswer) and save that hiddenfield value to the sql server database .


Please anyone help me ........
Jun 13 '14 #1
0 951

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tek9_AK | last post by:
I need to find a way to transfer all the values of an array inside a function out of the fuction into another array. IE function splice($filename){ if(file_exists($filename)){...
1
by: Bruno Alexandre | last post by:
Hi guys, How can I pass session/application values from a web page (ASP or ASP.NET) that is on a host company, into my cliente application? So I can hide menus based on access permisions once...
2
by: Eugenio | last post by:
Sorry in advance for my english. :-) I have a form MS Access97 with two subforms. These subforms have different data and dimensions, if into the main form I've selected with checkbox "Date of...
4
by: Manikandan | last post by:
Hi, I'm inserting a datetime values into sql server 2000 from c# SQL server table details Table name:date_test columnname datatype No int date_t DateTime ...
6
by: bobbystrain | last post by:
I cannot find how to extract information from the active asp page into a VB6 windows form. First, how do I refer to the active IE document? Then get selected data items from labels on the form, and...
2
by: forest demon | last post by:
I have a page with a ReportViewer instance on it. I have a report(.rdlc file) defined and associated with the ReportViewer instance. I want to grab values from web controls(label, textbox,...
1
by: Robertf987 | last post by:
Hello, I am creating a database in Microsoft Access 2000. It's to store books and other resources, like a library database (just to give you a bit of a background). I have a field called "Subject"....
5
by: lianping | last post by:
Hi, I have a problem to assign a value into text box, below will be my script. Before view my script, let me hv quick explain on what is my problem: I would like to assign Java script value...
1
by: munkee | last post by:
I am using a sub routine which returns values in the following way (it is just looking at the ldb of the access file): W7BC-P1595 Admin True Null If there are two users in the back end it...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.