EasyUI Forum
November 05, 2025, 01:21:41 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: content of a datebox  (Read 8810 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: November 17, 2014, 01:05:54 AM »

I created a datebox and used the following code to add a tooltip to it:

 if ($("#HOM_GEBURTSDATUM").length) {
  $('#HOM_GEBURTSDATUM').datebox();
  var tb = $('#HOM_GEBURTSDATUM').datebox('textbox');
  tb.add(tb.parent())
   .css("background-color","#1a1a1a")
   .css("color","#fff");
  tb.parent().tooltip({
     position: 'right',
     content: '<span>Geben Sie das Geburtsdatum des Pferdes ein.</span>'
    })
 }

Now, when I delete the value at the field within the form and submit the form, it still posts the former value.
My analysis shows that the value still appers with the ID of the datebox whereas the textbox (parent) has neighter id nor name.
How to fetch the value of the testbox?
THX, Jaimi
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 17, 2014, 01:31:35 AM »

How do you delete the datebox value? Please show some code snippets to describe your issue in more detail.
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 on: November 18, 2014, 12:41:02 AM »

It works well, when the value is changed by using the select-box of the datebox. I delete the content via keyboard delete key. Then the field content is empty.
I do not delete via javascript code.
Jaimi
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!