-
Nov 13th, 2011, 10:09 PM
#1
Thread Starter
Fanatic Member
JQUERY Help
Okay I'm having a hard time figuring this problem though for others it might be an easy task for them. What im trying to do is put an masking for all my input controls. However, the pattern that will be implemented is base on what the user will select on a dropdownlist. So lets assume that my pattern categories would be:
999-9999
(002) 999-9999
Now when they select one that is the time that the masking will be implemented in the input box. My problem is that when i select one nothing happen.
So here's my code BTW this is just a testing project for me.
MARKUP CODE
<script type="text/javascript">
$(document).ready(function(){
var label = $('#HiddenField1').val();
$('#TextBox1').mask(label, {placeholder:'_'});
});
</script>
CODE BEHIND
Sub Page_Load()
Me.HiddenField1.value = Me.Session("PATTERN")
ENd Sub
Dropdownlist1_SelectedTextChanged
Me.Session("PATTERN") = Me.Dropdownlist1.Text
End Sub
I don't know when jquery execute and how to implement this. Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|