I am using the following code to capture change text in HTML inputs:
$(document).ready(function() {
$(':input', document.myForm).bind("change", function() { setConfirmUnload(true); });
});
this works fine for normal textboxes and checkboxes.
I’m using Telerik’s MVC ComboBoxFor which renders input tags, but does not seem to trigger the above JQuery.
Any ideas how to capture this?
This is how the HTML renders:
<div class="t-widget t-combobox t-header" id="InterviewRequired">
<div class="t-dropdown-wrap t-state-default">
<input class="t-input" id="InterviewRequired-input" name="InterviewRequired-input" title="InterviewRequired" type="text" value="Select" />
<span class="t-select t-header">
<span class="t-icon t-arrow-down">select</span>
</span>
</div>
<input id="InterviewRequired-value" name="InterviewRequired" style="display:none" type="text" value="0" />
I’ve also asked this question on the Telerik forums in case I don’t get an answer here.
Looking at the demo here. The ComboBox is being rendered as
<input/>and a popup<div/>looking at the client side docs, you most likely will need to register a Client-side event located here.
it also looks like you should be able to do it with jQuery only from this example:
Maybe try: