EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on November 17, 2014, 01:05:54 AM



Title: content of a datebox
Post by: jaimi 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


Title: Re: content of a datebox
Post by: stworthy 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.


Title: Re: content of a datebox
Post by: jaimi 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