aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes jQuery and Hidden Input type not working Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "jQuery and Hidden Input type not working" Watch "jQuery and Hidden Input type not working" New topic
Author

jQuery and Hidden Input type not working

Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
I am trying to access value of hidden inside jquery but it is not working.
it always takes null in it, and do not allow code to run



__________

in body section i have written



Where am i doing the mistake?
kindly tell


USTAAD DESRAJ,
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

Technically, you're not using jQuery to retrieve the value.

Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
it is still not working



downside it is

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

Where exactly is the code failing? Are you using Firebug? if so, it should give you an error message in the console. What is it?
Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
I am using NETBEANS and IE

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

Ustaad Desraj wrote:I am using NETBEANS and IE


Then I can't help you. Maybe someone else can.
Ustaad Desraj
Ranch Hand

Joined: Jul 07, 2009
Posts: 34
but sir problem works same either netbeans or any other.

No read code and help me else i will destroy my head
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56162
    
  13

If you won't use proper tools, don't expect much help.

Test with Firebug in Firefox and let us know what you find.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

"x" is an element. You're comparing it to a string.
Deepak Bhasin
Greenhorn

Joined: Mar 30, 2010
Posts: 5
Ustaad Desraj wrote:it is still not working



downside it is



In the above code x is an object to compare the value to "123456" use x.val()...........

replace var x = $('#xman'); with var x = $('#xman').val();

This will work........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery and Hidden Input type not working
 
Similar Threads
Clean up script
Sorting array in bind("change", function()
Validating in Struts
Setting hidden parameter value from javascript
automatic form submit