"But in .js file it does not resolve the <%%> value. Any help would be
appreciated. "
As it shouldn't you've got a .js file, which IIS treats as plain
ol text and passes through untouched, it will never get seen or more
importantly processed by ASP.NET
You've got options through:
1) Keep a
Take a look at the metadata plugin:
http://plugins.jquery.com/project/metadata
- Richard
On Fri, Sep 26, 2008 at 7:09 AM, JQueryProgrammer
<[EMAIL PROTECTED]>wrote:
>
> Understand. But my issue is a bit different which i think i could not
> make it clear. I have a js file associated with every
Understand. But my issue is a bit different which i think i could not
make it clear. I have a js file associated with every aspx page. Now
my code is like
I tried to use the code (which is in my .js file) as:
$(function() { //document.ready
$("#myid").click(function() {
alert( "Hello "
The same with jQuery looks like this:
$(function() { //document.ready
$("#myid").click(function() {
alert( "Hello " + $(this).val() );
}
});
You don't have to pass anything to the function since the 'this' context
variable is equal to the element to which the event was bound. If you
4 matches
Mail list logo