Jul 18, 2017 04:31
thanks for solving my queries regarding this election. thanks
Jul 18, 2017 04:30
ok
Jul 18, 2017 04:29
just a curiosity: are moderators get any "salary" for moderating?
Jul 18, 2017 04:26
thank I will surely look into this. thanks
Jul 18, 2017 04:25
i have some favorite candidate so is it depends on their reputation ?
Jul 18, 2017 04:24
ok
Jul 18, 2017 04:22
how can i vote in this election?
 
Jun 7, 2017 09:46
sure
Jun 7, 2017 09:38
looks like What i need is the bug in the original codel.
Jun 7, 2017 09:38
Your Suggested Code is perfect and it's work in jsfiddle.
Jun 7, 2017 09:32
Sorry for the bad english
Jun 7, 2017 09:31
Yes. I get the List it means autocomplete is triggered but when incorrect value i am not going to onInvalidateSelection
Jun 7, 2017 09:29
But Still it is not working in my side.
Jun 7, 2017 09:28
thanks
Jun 7, 2017 09:28
ok I get that.
Jun 7, 2017 09:27
sorry i *hope
Jun 7, 2017 09:26
I home you are understanding what I am saying.
Jun 7, 2017 09:25
It's work only when user add correct value first and then if user add wrong value.
Jun 7, 2017 09:25
Try Doing this: 1st Enter Wrong Value Which is not in the lookup. We did not get the console at that time.
Jun 7, 2017 09:21
the hidden field is not get clear
Jun 7, 2017 09:20
I have also tried that then the old problem is came back again
Jun 7, 2017 09:18
this is the code.
Jun 7, 2017 09:18
var selectedValueID = 0;
$('.qualification_major_data').autocomplete({

lookup: qualifications_major_string,
appendTo: '.qualification_major_div',
minChars: 2,
onSelect: function (suggestion) {

alert('You selected: ' + suggestion.value + ', ' + suggestion.data);
// alert();

var selectedValueID = suggestion.data;

// $('#qualificationForm input[name="qualification_major_id_hidden[]"]').val(selectedValueID);
$(this).closest('.qualification_major_div').find('input[name="qualification_major_id_hidden[]"]').val(selectedValueID);
Jun 7, 2017 09:18
I have added as you suggested.
Jun 7, 2017 09:17
If I remove that focus line and add class as you suggested, my autocomplete is not get triggered , it's not working
Jun 7, 2017 09:16
Your Solution is look perfect but did not work in my code.
Jun 7, 2017 09:15
For Simplification & as per best practices, I have added this scripts to the external js file.
Jun 7, 2017 09:14
Like If user have more qualification to add then he can add more qualifications in that case model has multiple autocomplete.
Jun 7, 2017 09:14
I have one bootstrap model & in that, I have autocompleted in that. Now User Can Add this Autocomplete dynamically.
Jun 7, 2017 09:12
1sec i am typing
Jun 7, 2017 09:11
This Autocomplete is on the bootstrap model & also in an external Js file. Is it the problem? because it's not working? when I remove that 'focus' code and put the class instead of this.
Jun 7, 2017 09:11
What's causing your errors (Case1 and Case2)? -- Both the Case. I show the fiddle and it's almost it what I need.
Jun 7, 2017 09:11
Thanks, I will keep it in mind for future. (console log). Actually, I am using this auto complete in a different way. User Can Dynamically Add more of this input so I use a class instead of id. I will Explain it to you that This is the Qualification Filed so a user can add more qualification as he wishes so I used a class instead of id for it. Hope You understand.
 
Jun 5, 2017 07:36
ok, I tried that one also this is what happen, Firest I Add try and catch block over the code in the controller which interact with the model. And Tried to set HTTP header to send a message but I failed. While debugging I get that my code is directly getting into error from the model so I put try catch in the model over query but still did not get it. And also one thing I want to tell you that I am not very familiar with this try catch.
Jun 5, 2017 06:25
So I do not want to create a static error handling. I want to make it clear to the user that he is done wrong in insert or update or anything, but they get notify compulsory.
Jun 5, 2017 06:24
And for your Check id suggestion, Sir I put that error just for testing but in future, any other error came across than how can my code will handle it and how my user gets notified that he made this mistakes in this process.
Jun 5, 2017 06:21
In Final Simple Word In Codeigniter When I use Transaction on several database operations so when it get filed I want to notify the user that in this processor in this operation he get an error. And this is not working properly.
Jun 5, 2017 06:19
I have generated custom log message for track the process & it shows that if database error occurs then transaction is get failed and that time because I have created separate error messages for that so I want to notify the user that you have error in this operation
Jun 5, 2017 06:16
no sir still show that undefiened
Jun 5, 2017 06:13
let me try
Jun 5, 2017 06:13
ok
Jun 5, 2017 06:09
i get that object object while error occurs in the query
Jun 5, 2017 06:09
no sir
Jun 5, 2017 06:07
I have updated it in the question sir. In Ajax Code.
Jun 5, 2017 06:07
ok if I get an error in an update that I did not get the id in where condition so an error occurs. I get $msg = " Failed To Save! Error While Updating. " The Problem is that when I alert in ajax error with like: alert(msg.message); it show undefined.
Jun 5, 2017 06:07
I think I am not able to describe my problem properly because What you suggest is what I did already.
 
Jul 22, 2015 05:29
after selecting a value it show the validation error and the stop the form execution.
Jul 22, 2015 05:28
but the select box prevent my form to submit. ..
Jul 22, 2015 05:28
sir i done that...