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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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



GenRocket - Experts at Building Test Data
Ustaad Desraj
Ranch Hand

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



downside it is

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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: 60997
    
  65

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

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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