Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

model dailogbox in javascript  RSS feed

 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all
I have a model dialog box which i have use for user login
I have a code given below .

javascript function



Htmal code given below for dailog content



And css is


In this case how can i retrieve value of emailid and password
from dailog.

Thanks in advance
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By getting the input elements IDs and looking at their values?
 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i am try to get value with



But i cant get anything.

I was also call a function from submit button
and try to get value in it but i cant.
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kavita vala wrote:But i am try to get value with



But i cant get anything.

I was also call a function from submit button
and try to get value in it but i cant.


Hey,

Perhaps you should try looking for id_email and id_pass as these are the id's that you have on the inputs...

Sean
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not its id, for one thing.

Oops, too late; forgot to hit send!
 
Eswar Nec
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are so many way to get the value.


Then the corresponding javascript is :


What will you see the output after use the above script
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!